Skip to content

Commit b42e648

Browse files
authored
Merge pull request #109 from dfinity/igor/docker2
Try to fix docker
2 parents c16a34d + 350c15e commit b42e648

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@ env:
1010
REGISTRY: ghcr.io
1111
IMAGE_NAME: ${{ github.repository }}
1212

13+
permissions:
14+
contents: write
15+
packages: write
16+
attestations: write
17+
id-token: write
18+
1319
jobs:
1420
build:
1521
runs-on: ubuntu-24.04
1622

17-
permissions:
18-
contents: write
19-
packages: write
20-
attestations: write
21-
id-token: write
22-
2323
steps:
2424
- uses: actions/checkout@v4
2525

@@ -80,29 +80,29 @@ jobs:
8080
body: "IC-Gateway release"
8181

8282
- name: Log in to the Container registry
83-
uses: docker/login-action@v3
83+
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772
8484
with:
8585
registry: ${{ env.REGISTRY }}
8686
username: ${{ github.actor }}
8787
password: ${{ secrets.GITHUB_TOKEN }}
8888

8989
- name: Extract metadata for Docker
9090
id: docker_meta
91-
uses: docker/metadata-action@v5
91+
uses: docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804
9292
with:
9393
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
9494

9595
- name: Build and push Docker image
9696
id: docker_push
97-
uses: docker/build-push-action@v6
97+
uses: docker/build-push-action@1dc73863535b631f98b2378be8619f83b136f4a0
9898
with:
9999
context: .
100100
push: true
101101
tags: ${{ steps.docker_meta.outputs.tags }}
102102
labels: ${{ steps.docker_meta.outputs.labels }}
103103

104104
- name: Generate artifact attestation
105-
uses: actions/attest-build-provenance@v2
105+
uses: actions/attest-build-provenance@db473fddc028af60658334401dc6fa3ffd8669fd
106106
with:
107107
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
108108
subject-digest: ${{ steps.docker_push.outputs.digest }}

0 commit comments

Comments
 (0)