Skip to content

Commit 0ef13e0

Browse files
committed
fix github action syntax for docker push
1 parent 112ee61 commit 0ef13e0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/docker.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,13 @@ jobs:
2525
username: ${{ secrets.ACTION_USER }}
2626
password: ${{ secrets.ACTION_TOKEN }}
2727

28+
- name: Shorten SHA
29+
id: shorten_sha
30+
run: echo "SHORT_SHA=$(echo ${{ github.sha }} | cut -c 1-7)" >> $GITHUB_ENV
31+
2832
- name: Build and push Docker image
2933
uses: docker/build-push-action@v5
3034
with:
3135
context: .
3236
push: true
33-
tags: ghcr.io/${{ github.repository }}/modelbricks:${{ github.sha.substring(0, 7) }}
37+
tags: ghcr.io/virtualcell/modelbricks:${{ env.SHORT_SHA }}

0 commit comments

Comments
 (0)