Skip to content
This repository has been archived by the owner on Jun 29, 2023. It is now read-only.

Commit

Permalink
Merge pull request #645 from thehubbleproject/bug/release-pipeline-2-…
Browse files Browse the repository at this point in the history
…electric-boogaloo

Push each image tag seperately
  • Loading branch information
jacque006 authored Aug 5, 2021
2 parents 3d1a93d + 706dbf8 commit 8da37ec
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/docker-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ jobs:
name: Pull image for git sha
run: docker pull ${{ env.DOCKER_IMAGE_SHA }}
-
name: Tag image with release
run: docker tag ${{ env.DOCKER_IMAGE_SHA }} ${{ env.DOCKER_IMAGE_TAG }}
name: Tag and push image with release
run: |
docker tag ${{ env.DOCKER_IMAGE_SHA }} ${{ env.DOCKER_IMAGE_TAG }} &&
docker push ${{ env.DOCKER_IMAGE_TAG }}
-
name: Tag image with latest
name: Tag and push image with latest
if: ${{ github.event.release.prerelease == 'false' }}
run: docker tag ${{ env.DOCKER_IMAGE_SHA }} ${{ env.DOCKER_IMAGE_LATEST }}
-
name: Push tagged image(s)
# Pushing the image name without a tag will push all new tags.
run: docker push ${{ env.DOCKER_IMAGE }}
run: |
docker tag ${{ env.DOCKER_IMAGE_SHA }} ${{ env.DOCKER_IMAGE_LATEST }} &&
docker push ${{ env.DOCKER_IMAGE_LATEST }}

0 comments on commit 8da37ec

Please sign in to comment.