Skip to content

Commit c70703a

Browse files
committed
chore: fix docker workflow
1 parent f730330 commit c70703a

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/docker.yml

+10-5
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,30 @@ env:
1212
jobs:
1313
push:
1414
runs-on: ubuntu-latest
15+
permissions:
16+
contents: read
17+
packages: write
18+
attestations: write
19+
id-token: write
1520
steps:
1621
- name: Checkout repository
1722
uses: actions/checkout@v3
1823

1924
- name: Log in to the Container registry
20-
uses: docker/login-action@v2.1.0
25+
uses: docker/login-action@v3
2126
with:
22-
registry: ${{ env.REGISTRY }}
23-
username: ${{ github.actor }}
27+
registry: ghcr.io
28+
username: includable
2429
password: ${{ secrets.GITHUB_TOKEN }}
2530

2631
- name: Extract metadata (labels) for Docker
2732
id: meta
28-
uses: docker/metadata-action@v4.4.0
33+
uses: docker/metadata-action@v5
2934
with:
3035
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
3136

3237
- name: Build and push Docker image
33-
uses: docker/build-push-action@v4.0.0
38+
uses: docker/build-push-action@v6
3439
with:
3540
context: ./lib/docker/craft
3641
push: true

0 commit comments

Comments
 (0)