Skip to content

Commit

Permalink
Merge pull request #6 from paritytech/as-fix-ci
Browse files Browse the repository at this point in the history
Fix push docker image
  • Loading branch information
alvicsam authored Feb 5, 2024
2 parents cbe6c28 + b8bded3 commit aa40cb1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ jobs:

- name: Prepare Docker environment
run: |
echo IMAGE_TAG=$(if [ "$GITHUB_REF" == "refs/heads/master" ]; then echo "master-${GITHUB_SHA::7}"; else echo "$GITHUB_REF_NAME"; fi) >> $GITHUB_ENV
export IMAGE_TAG=$(if [ "$GITHUB_REF" == "refs/heads/master" ]; then echo "master-${GITHUB_SHA::7}"; else echo "$GITHUB_REF_NAME"; fi)
echo $IMAGE_TAG
echo "Docker image will be published with the tag: ${{ env.IMAGE_TAG }}!"
- name: Log in to Docker Hub
Expand All @@ -55,7 +56,7 @@ jobs:
with:
context: .
file: ./Dockerfile
push: ${{ github.ref == 'refs/heads/master' }}
push: true
build-args: |
VCS_REF="${{ github.sha }}"
BUILD_DATE="$(date -u '+%Y-%m-%dT%H:%M:%SZ')"
Expand Down

0 comments on commit aa40cb1

Please sign in to comment.