Skip to content

Commit

Permalink
make latest-tag
Browse files Browse the repository at this point in the history
  • Loading branch information
bhuvanessr committed Jun 1, 2020
1 parent 5398da8 commit a84b89d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,6 @@ jobs:
script:
- docker login -u ${DOCKERHUB_USER} -p ${DOCKERHUB_PSWD}
# BUILD_OUTPUT=--push requests buildx to push the built images to docker hub
- travis_wait 60 make BUILD_OUTPUT=--push release
- travis_wait 60 make BUILD_OUTPUT=--push release
- make latest-tag

14 changes: 14 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,20 @@ operator-image: clean-operator

release: install-buildx controller-image webhook-server-image cri-client-image operator-image

latest-tag:
docker pull ${CONTROLLER_IMAGE_REPO}:${RELEASE_VERSION}
docker tag ${CONTROLLER_IMAGE_REPO}:${RELEASE_VERSION} ${CONTROLLER_IMAGE_REPO}:latest
docker push ${CONTROLLER_IMAGE_REPO}:latest
docker pull ${WEBHOOK_SERVER_IMAGE_REPO}:${RELEASE_VERSION}
docker tag ${WEBHOOK_SERVER_IMAGE_REPO}:${RELEASE_VERSION} ${WEBHOOK_SERVER_IMAGE_REPO}:latest
docker push ${WEBHOOK_SERVER_IMAGE_REPO}:latest
docker pull ${CRI_CLIENT_IMAGE_REPO}:${RELEASE_VERSION}
docker tag ${CRI_CLIENT_IMAGE_REPO}:${RELEASE_VERSION} ${CRI_CLIENT_IMAGE_REPO}:latest
docker push ${CRI_CLIENT_IMAGE_REPO}:latest
docker pull ${OPERATOR_IMAGE_REPO}:${RELEASE_VERSION}
docker tag ${OPERATOR_IMAGE_REPO}:${RELEASE_VERSION} ${OPERATOR_IMAGE_REPO}:latest
docker push ${OPERATOR_IMAGE_REPO}:latest

install-buildx:
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
-docker buildx rm multibuilder
Expand Down

0 comments on commit a84b89d

Please sign in to comment.