Skip to content

Commit

Permalink
chore(push): Update push script to push the latest tag on release (#124
Browse files Browse the repository at this point in the history
…) (#131)

Signed-off-by: udit <udit.gaurav@mayadata.io>

Co-authored-by: Shubham Chaudhary <shubham.chaudhary@mayadata.io>

Co-authored-by: Udit Gaurav <35391335+uditgaurav@users.noreply.github.com>
Co-authored-by: Shubham Chaudhary <shubham.chaudhary@mayadata.io>
  • Loading branch information
3 people authored Jan 25, 2021
1 parent e809136 commit 0749f84
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions build/push
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@ function push_release_image(){
# When github is tagged with a release, then CircleCI will
# set the release tag in env CIRCLE_TAG
echo "Pushing ${REPONAME}/${IMGNAME}:${CIRCLE_TAG} ..."
docker buildx build --file build/Dockerfile --push --platform linux/arm64,linux/amd64 --tag ${REPONAME}/${IMGNAME}:${CIRCLE_TAG} .
docker buildx build --file build/Dockerfile --progress plane --push --platform linux/arm64,linux/amd64 --tag ${REPONAME}/${IMGNAME}:${CIRCLE_TAG} .
echo "Pushing ${REPONAME}/${IMGNAME}:ci ..."
docker buildx build --file build/Dockerfile --push --platform linux/arm64,linux/amd64 --tag ${REPONAME}/${IMGNAME}:ci .
docker buildx build --file build/Dockerfile --progress plane --push --platform linux/arm64,linux/amd64 --tag ${REPONAME}/${IMGNAME}:ci .
echo "Pushing ${REPONAME}/${IMGNAME}:latest ..."
docker buildx build --file build/Dockerfile --progress plane --push --platform linux/arm64,linux/amd64 --tag ${REPONAME}/${IMGNAME}:latest .
fi;

}


Expand Down

0 comments on commit 0749f84

Please sign in to comment.