Skip to content

Commit 7b4256e

Browse files
authored
Packages writes in action job (#206)
1 parent a7ddd00 commit 7b4256e

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,11 +301,19 @@ jobs:
301301
fcos-image:
302302
needs: [ release ]
303303
runs-on: ubuntu-latest
304+
permissions:
305+
packages: write
304306
if: github.ref_type == 'tag'
305307
env:
306308
GH_TOKEN: ${{ github.token }}
307309
steps:
308310
- uses: actions/checkout@v4
311+
- name: Log in to the Container registry
312+
uses: docker/login-action@v3
313+
with:
314+
registry: https://ghcr.io
315+
username: ${{ github.actor }}
316+
password: ${{ secrets.GITHUB_TOKEN }}
309317
- name: Docker meta
310318
id: meta
311319
uses: docker/metadata-action@v5 # see https://github.com/docker/metadata-action
@@ -329,7 +337,7 @@ jobs:
329337
# Since we need the cargo workspace, we need to make the repo root the context
330338
context: ./images/fcos-skate
331339
push: true
332-
#build-args: VERSION=${{ github.ref_name }}
340+
build-args: VERSION=${{ github.ref_name }}
333341
tags: ${{ steps.meta.outputs.tags }}
334342
labels: ${{ steps.meta.outputs.labels }}
335343
file: ./images/fcos-skate/ContainerFile

0 commit comments

Comments
 (0)