This commit is contained in:
parent
05a1670317
commit
16cf5d8fe4
@ -3,6 +3,7 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
tag="$REGISTRY/$SERVICE:${COMMIT_SHA:0:10}"
|
tag="$REGISTRY/$SERVICE:${COMMIT_SHA:0:10}"
|
||||||
|
latest_tag="$REGISTRY/$SERVICE:latest"
|
||||||
|
|
||||||
if [[ -n $DEBUG ]]
|
if [[ -n $DEBUG ]]
|
||||||
then
|
then
|
||||||
@ -13,5 +14,9 @@ then
|
|||||||
echo " TMP: $TMP"
|
echo " TMP: $TMP"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
DOCKER_BUILDKIT=1 docker build -t "$tag" -f "$TMP/build_release.Dockerfile" .
|
echo "docker: logging in"
|
||||||
|
docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
|
||||||
|
|
||||||
|
DOCKER_BUILDKIT=1 docker build -t "$tag" --build-arg BUILDKIT_INLINE_CACHE=1 --cache-from $latest_tag -f "$TMP/build_release.Dockerfile" .
|
||||||
|
docker tag "$tag" "$latest_tag"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user