Skip to content

Commit 21596bc

Browse files
committed
ci: updated with correct permissions and only on tags push
1 parent cf1aa2f commit 21596bc

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ on:
1717
types:
1818
- released
1919

20+
permissions:
21+
contents: read
22+
packages: write
23+
2024
jobs:
2125
test:
2226
runs-on: ubuntu-24.04
@@ -71,6 +75,7 @@ jobs:
7175
run: docker build -t ${{ steps.vars.outputs.tag }} .
7276

7377
- name: Push Docker image
78+
if: startsWith(github.ref, 'refs/tags/')
7479
run: docker push ${{ steps.vars.outputs.tag }}
7580

7681
- name: Tag and push latest (on main only)

0 commit comments

Comments
 (0)