Skip to content

Commit 9e8d24c

Browse files
authored
test: grant write permissions to a workflow for docker push (#157)
1 parent 7fe98ba commit 9e8d24c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/redis-cluster-proxy.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ jobs:
1616
timeout-minutes: 15
1717
runs-on: ubuntu-latest
1818
concurrency: redis-cluster-proxy
19+
permissions:
20+
packages: write
1921
defaults:
2022
run:
2123
working-directory: test/proxy/redis-cluster-proxy
@@ -26,10 +28,12 @@ jobs:
2628
uses: actions/checkout@v3
2729

2830
- name: Build image
29-
run: docker build . --tag $IMAGE_NAME
31+
run: |
32+
docker build . --tag $IMAGE_NAME
3033
3134
- name: Log into GitHub Container Registry
32-
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login https://ghcr.io -u ${{ github.actor }} --password-stdin
35+
run: |
36+
echo "${{ secrets.GITHUB_TOKEN }}" | docker login https://ghcr.io -u ${{ github.actor }} --password-stdin
3337
3438
- name: Push image to GitHub Container Registry
3539
run: |

0 commit comments

Comments
 (0)