deploy: improve container push rules

Improve and cleanup container push rules to prepare for the move to the
official gcr.k8s.io registry.
As part of the improvements, I replaced the non cross platform busybox
image by gcr.io/distroless/static:latest which is platform agnostic.

Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com>
This commit is contained in:
Damien Grisonnet 2021-06-30 15:01:34 +02:00
parent 70418fdbf8
commit 046b970edb
3 changed files with 50 additions and 46 deletions

View file

@ -3,7 +3,7 @@ set -x
docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD"
if [[ -n $TRAVIS_TAG ]]; then
make push TAG="$(cat "VERSION")"
make push
else
make push-amd64
TAG=latest make push
fi