File tree Expand file tree Collapse file tree 1 file changed +1
-26
lines changed
Expand file tree Collapse file tree 1 file changed +1
-26
lines changed Original file line number Diff line number Diff line change 99 DEFAULT_BRANCH : main
1010
1111jobs :
12- prepare :
13- name : Prepare
14- runs-on : ubuntu-latest
15- permissions :
16- contents : read
17- actions : read
18- steps :
19- - name : Determine tags
20- id : tags
21- env :
22- BRANCH : ${{ github.ref_name }}
23- SHA : ${{ github.sha }}
24- run : |
25- export TAGS="$BRANCH;$BRANCH-${SHA:0:7}"
26-
27- if [ "$BRANCH" = "$DEFAULT_BRANCH" ]; then
28- export TAGS="$TAGS;latest"
29- fi
30-
31- echo "tags=$TAGS" >>$GITHUB_OUTPUT
32- outputs :
33- tags : ${{ steps.tags.outputs.tags }}
34-
3512 build :
3613 name : Build
3714 uses : freedomofpress/actionslib/.github/workflows/oci-build.yaml@main
38- needs :
39- - prepare
4015 permissions :
4116 contents : read
4217 actions : read
4318 packages : write
4419 with :
4520 context : " ."
4621 containerfile : deploy/Dockerfile
47- tags : ${{ needs.prepare.outputs.tags }}
4822 registry : ghcr.io/freedomofpress/dangerzone-rocks
23+ add-branch-tags : true
4924 secrets :
5025 registry-password : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments