Skip to content

Commit 161805a

Browse files
authored
Update ghcr.yml (#197)
1 parent e549d35 commit 161805a

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

.github/workflows/ghcr.yml

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,30 @@ on:
99
branches:
1010
- 'master'
1111

12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
15+
16+
permissions:
17+
contents: read
18+
packages: write
19+
1220
jobs:
1321
build:
1422
name: Docker images for ghcr.io
1523
runs-on: ubuntu-latest
1624
env:
17-
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
1825
DOCKER_REGISTRY: ghcr.io
1926
DOCKER_IMAGE_BASE: ${{ github.repository }}
2027
steps:
2128
- name: Check out the repo
22-
uses: actions/checkout@v3
29+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
2330

2431
- name: Set up Docker Buildx
25-
uses: docker/setup-buildx-action@v2
32+
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
2633

2734
- name: Log in to the registry
28-
uses: docker/login-action@v2
35+
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
2936
with:
3037
registry: ${{ env.DOCKER_REGISTRY }}
3138
username: ${{ github.actor }}
@@ -35,12 +42,12 @@ jobs:
3542

3643
- name: API image tags & labels
3744
id: meta-api
38-
uses: docker/metadata-action@v3
45+
uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5.10.0
3946
with:
4047
images: ${{ env.DOCKER_REGISTRY }}/${{ env.DOCKER_IMAGE_BASE }}-api
4148

4249
- name: API image build & push
43-
uses: docker/build-push-action@v3
50+
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
4451
with:
4552
context: .
4653
file: Tzkt.Api/Dockerfile
@@ -54,17 +61,17 @@ jobs:
5461

5562
- name: Sync image tags & labels
5663
id: meta-sync
57-
uses: docker/metadata-action@v3
64+
uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5.10.0
5865
with:
5966
images: ${{ env.DOCKER_REGISTRY }}/${{ env.DOCKER_IMAGE_BASE }}-sync
6067

6168
- name: Sync image build & push
62-
uses: docker/build-push-action@v3
69+
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
6370
with:
6471
context: .
6572
file: Tzkt.Sync/Dockerfile
6673
push: true
6774
cache-from: type=gha
6875
cache-to: type=gha,mode=max
6976
tags: ${{ steps.meta-sync.outputs.tags }}
70-
labels: ${{ steps.meta-syn.coutputs.labels }}
77+
labels: ${{ steps.meta-sync.outputs.labels }}

0 commit comments

Comments
 (0)