with push release
This commit is contained in:
parent
3ee722f795
commit
0babeff695
@ -18,3 +18,5 @@ scripts:
|
||||
type: shell
|
||||
setup_ssh:
|
||||
type: shell
|
||||
push_release:
|
||||
type: shell
|
||||
|
21
scripts/push_release.sh
Executable file
21
scripts/push_release.sh
Executable file
@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
tag="$REGISTRY/$SERVICE:${COMMIT_SHA:0:10}"
|
||||
|
||||
if [[ -n $DEBUG ]]
|
||||
then
|
||||
echo "debug:"
|
||||
echo " REGISTRY: $REGISTRY"
|
||||
echo " SERVICE: $SERVICE"
|
||||
echo " COMMIT_SHA: $COMMIT_SHA"
|
||||
echo " TMP: $TMP"
|
||||
fi
|
||||
|
||||
echo "docker: logging in"
|
||||
docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
|
||||
|
||||
echo "docker: pushing image $tag"
|
||||
DOCKER_BUILDKIT=1 docker push "$tag"
|
||||
|
Loading…
Reference in New Issue
Block a user