1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2024-12-15 17:50:49 +00:00
node-feature-discovery/scripts/test-infra/push-image.sh
Markus Lehtonen 86659fb100 scripts: configure docker authentication in push-image.sh
As we're trying to push the images directly from the phase job and not
use 'images:' targets in cloudbuild.yaml.
2020-09-03 23:35:07 +03:00

13 lines
293 B
Bash
Executable file

#!/bin/bash -e
# Strip 'vYYYYMMDD-' from the variable in order to get a reproducible
# version and container image tag
if [ -n "$_GIT_TAG" ]; then
export VERSION=${_GIT_TAG:10}
fi
# Authenticate in order to be able to push images
gcloud auth configure-docker
make image -e
make push -e