Skip to content

Commit 3846cd8

Browse files
authored
Merge pull request #98 from freedomofpress/enp/update-ci
Update image publish automation to drop redundant prepare job
2 parents f9a3c05 + b2a0138 commit 3846cd8

File tree

1 file changed

+1
-26
lines changed

1 file changed

+1
-26
lines changed

.github/workflows/publish.yaml

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -9,42 +9,17 @@ env:
99
DEFAULT_BRANCH: main
1010

1111
jobs:
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 }}

0 commit comments

Comments
 (0)