Skip to content

Commit

Permalink
fix github action syntax for docker push
Browse files Browse the repository at this point in the history
  • Loading branch information
jcschaff committed May 31, 2024
1 parent 112ee61 commit 0ef13e0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,13 @@ jobs:
username: ${{ secrets.ACTION_USER }}
password: ${{ secrets.ACTION_TOKEN }}

- name: Shorten SHA
id: shorten_sha
run: echo "SHORT_SHA=$(echo ${{ github.sha }} | cut -c 1-7)" >> $GITHUB_ENV

- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ghcr.io/${{ github.repository }}/modelbricks:${{ github.sha.substring(0, 7) }}
tags: ghcr.io/virtualcell/modelbricks:${{ env.SHORT_SHA }}

0 comments on commit 0ef13e0

Please sign in to comment.