Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
Using github commit has as version for generating image tag.
  • Loading branch information
piyuesh23 authored Jun 30, 2021
1 parent c2c222f commit 2d30e49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ jobs:
DOCKER_REGISTRY_URL: ${{secrets.DOCKER_REGISTRY_URL}}
run: |
docker build -t qed42_nodejs .
docker tag qed42_nodejs:latest $DOCKER_REGISTRY_URL/qed42_nodejs:${{env.GITHUB_SHA}}
docker tag qed42_nodejs:latest $DOCKER_REGISTRY_URL/qed42_nodejs:$GITHUB_SHA
# Push image
- name: Push docker image
env:
DOCKER_REGISTRY_URL: ${{secrets.DOCKER_REGISTRY_URL}}
run: docker push $DOCKER_REGISTRY_URL/qed42_nodejs:${{env.GITHUB_SHA}}
run: docker push $DOCKER_REGISTRY_URL/qed42_nodejs:$GITHUB_SHA

0 comments on commit 2d30e49

Please sign in to comment.