Skip to content

Commit dc76672

Browse files
committed
fix
1 parent 9c7267b commit dc76672

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/main.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ on:
77
jobs:
88
build:
99
runs-on: ubuntu-latest
10+
1011
steps:
12+
- name: Get Short SHA
13+
run: echo "SHORT_SHA=${{ github.sha::0:7 }}" >> $GITHUB_ENV
1114
- name: Set up QEMU
1215
uses: docker/setup-qemu-action@v2
1316

@@ -36,7 +39,7 @@ jobs:
3639
push: true
3740
platforms: linux/amd64
3841
tags: |
39-
glapss/responcer:${GITHUB_SHA::7}
42+
glapss/responcer:${SHORT_SHA}
4043
glapss/responcer:latest
4144
ghcr.io/${{ github.repository }}:latest
42-
ghcr.io/${{ github.repository }}:${GITHUB_SHA::7}
45+
ghcr.io/${{ github.repository }}:${SHORT_SHA}

0 commit comments

Comments
 (0)