Skip to content

Commit ea6c0b9

Browse files
authored
Merge branch 'main' into viraj124/fix-grant-role-log-ci
2 parents 58b7e47 + d521192 commit ea6c0b9

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

.github/workflows/docker-publish.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,18 @@ jobs:
3636
username: ${{ github.repository_owner }}
3737
password: ${{ secrets.GITHUB_TOKEN }}
3838

39+
- name: Get short SHA
40+
id: short_sha
41+
run: echo "::set-output name=SHORT_SHA::${GITHUB_SHA::7}"
42+
3943
- name: Build and push multi-arch fuel-bridge image
4044
uses: docker/build-push-action@v4
4145
with:
4246
context: .
4347
push: true
44-
tags: ghcr.io/fuellabs/fuel-bridge:latest
48+
tags: |
49+
ghcr.io/fuellabs/fuel-bridge:latest
50+
ghcr.io/fuellabs/fuel-bridge:${{ steps.short_sha.outputs.SHORT_SHA }}
4551
file: docker/l1-chain/Dockerfile
4652
platforms: linux/amd64,linux/arm64
4753

@@ -67,11 +73,17 @@ jobs:
6773
username: ${{ github.repository_owner }}
6874
password: ${{ secrets.GITHUB_TOKEN }}
6975

76+
- name: Get short SHA
77+
id: short_sha
78+
run: echo "::set-output name=SHORT_SHA::${GITHUB_SHA::7}"
79+
7080
- name: Build and push multi-arch fuel-bridge-full image
7181
uses: docker/build-push-action@v4
7282
with:
7383
context: .
7484
push: true
75-
tags: ghcr.io/fuellabs/fuel-bridge-full:latest
85+
tags: |
86+
ghcr.io/fuellabs/fuel-bridge-full:latest
87+
ghcr.io/fuellabs/fuel-bridge-full:${{ steps.short_sha.outputs.SHORT_SHA }}
7688
file: docker/full-env/Dockerfile
7789
platforms: linux/amd64,linux/arm64

0 commit comments

Comments
 (0)