We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 112ee61 commit 0ef13e0Copy full SHA for 0ef13e0
.github/workflows/docker.yml
@@ -25,9 +25,13 @@ jobs:
25
username: ${{ secrets.ACTION_USER }}
26
password: ${{ secrets.ACTION_TOKEN }}
27
28
+ - name: Shorten SHA
29
+ id: shorten_sha
30
+ run: echo "SHORT_SHA=$(echo ${{ github.sha }} | cut -c 1-7)" >> $GITHUB_ENV
31
+
32
- name: Build and push Docker image
33
uses: docker/build-push-action@v5
34
with:
35
context: .
36
push: true
- tags: ghcr.io/${{ github.repository }}/modelbricks:${{ github.sha.substring(0, 7) }}
37
+ tags: ghcr.io/virtualcell/modelbricks:${{ env.SHORT_SHA }}
0 commit comments