This commit is contained in:
parent
0b23975d7c
commit
9907fa1ec5
@ -29,6 +29,7 @@ steps:
|
|||||||
- cuddle_cli x start_deployment
|
- cuddle_cli x start_deployment
|
||||||
- cuddle_cli x render_templates
|
- cuddle_cli x render_templates
|
||||||
- cuddle_cli x build_release
|
- cuddle_cli x build_release
|
||||||
|
- cuddle_cli x push_release
|
||||||
- cuddle_cli x deploy_release
|
- cuddle_cli x deploy_release
|
||||||
environment:
|
environment:
|
||||||
DOCKER_BUILDKIT: 1
|
DOCKER_BUILDKIT: 1
|
||||||
|
20
scripts/push_release.sh
Normal file
20
scripts/push_release.sh
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
#!/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