-
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (43 loc) · 1.3 KB
/
build-and-publish-dev.yaml
File metadata and controls
48 lines (43 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Build and publish dev
on:
push:
branches: [main]
workflow_dispatch:
inputs:
upstream-ref:
required: false
type: string
jobs:
build-and-publish-dev:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
env:
BEETS_VERSION: "2.11.0"
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Build
id: build
uses: ./.github/actions/build
with:
label: 'dev'
repos: |
ghcr.io/treyturner/beets
docker.io/treyturner/beets
forgejo.treyturner.info/treyturner/beets
upstream-ref: ${{ inputs.upstream-ref || format('v{0}', env.BEETS_VERSION) }}
- name: Test
uses: ./.github/actions/test
with:
image-ref: ${{ steps.build.outputs.primary-ref }}
beets-version: ${{ env.BEETS_VERSION }}
- name: Publish
uses: ./.github/actions/publish
with:
dockerhub-username: ${{ vars.DOCKERHUB_USERNAME }}
dockerhub-password: ${{ secrets.DOCKERHUB_TOKEN }}
forgejo-registry-token: ${{ secrets.FORGEJO_REGISTRY_TOKEN }}
github-token: ${{ github.token }}
refs: ${{ steps.build.outputs.refs }}