This commit is contained in:
parent
79e237e588
commit
a5c45fa690
@ -1,12 +1,12 @@
|
||||
variables:
|
||||
&vars
|
||||
REGISTRY=code.balsillie.net &&
|
||||
REGISTRY_USER=michael &&
|
||||
ORGANIZATION=containers &&
|
||||
SOURCE_ORGANIZATION=mirrors &&
|
||||
REPO=matrix-service-synapse &&
|
||||
BUILD_ARGS="PYTHON_VERSION=3.10" &&
|
||||
DOCKERFILE="docker/Dockerfile" &&
|
||||
REGISTRY=code.balsillie.net
|
||||
REGISTRY_USER=michael
|
||||
ORGANIZATION=containers
|
||||
SOURCE_ORGANIZATION=mirrors
|
||||
REPO=matrix-service-synapse
|
||||
BUILD_ARGS="PYTHON_VERSION=3.10"
|
||||
DOCKERFILE="docker/Dockerfile"
|
||||
CONTEXT=.
|
||||
|
||||
workspace:
|
||||
@ -40,12 +40,12 @@ pipeline:
|
||||
- export DOCKER_BUILDKIT=1
|
||||
- cd /git/$REPO
|
||||
- echo $REGISTRY_PASSWORD | docker login $REGISTRY -u $REGISTRY_USER --password-stdin
|
||||
- docker build \
|
||||
-t $REGISTRY/$ORGANIZATION/$REPO:$TAG \
|
||||
-t $REGISTRY/$ORGANIZATION/$REPO:$(date +%F) \
|
||||
-t $REGISTRY/$ORGANIZATION/$REPO:latest \
|
||||
--pull \
|
||||
--build-arg $BUILD_ARGS \
|
||||
-f $DOCKERFILE \
|
||||
- docker build
|
||||
-t $REGISTRY/$ORGANIZATION/$REPO:$TAG
|
||||
-t $REGISTRY/$ORGANIZATION/$REPO:$(date +%F)
|
||||
-t $REGISTRY/$ORGANIZATION/$REPO:latest
|
||||
--pull
|
||||
--build-arg $BUILD_ARGS
|
||||
-f $DOCKERFILE
|
||||
$CONTEXT
|
||||
- docker push $REGISTRY/$ORGANIZATION/$REPO:latest
|
Loading…
Reference in New Issue
Block a user