newline stuff
Some checks failed
ci/woodpecker/push/main Pipeline failed

This commit is contained in:
Michael Balsillie 2022-08-21 23:33:27 +12:00
parent 79e237e588
commit a5c45fa690

View File

@ -1,12 +1,12 @@
variables: variables:
&vars &vars
REGISTRY=code.balsillie.net && REGISTRY=code.balsillie.net
REGISTRY_USER=michael && REGISTRY_USER=michael
ORGANIZATION=containers && ORGANIZATION=containers
SOURCE_ORGANIZATION=mirrors && SOURCE_ORGANIZATION=mirrors
REPO=matrix-service-synapse && REPO=matrix-service-synapse
BUILD_ARGS="PYTHON_VERSION=3.10" && BUILD_ARGS="PYTHON_VERSION=3.10"
DOCKERFILE="docker/Dockerfile" && DOCKERFILE="docker/Dockerfile"
CONTEXT=. CONTEXT=.
workspace: workspace:
@ -40,12 +40,12 @@ pipeline:
- export DOCKER_BUILDKIT=1 - export DOCKER_BUILDKIT=1
- cd /git/$REPO - cd /git/$REPO
- echo $REGISTRY_PASSWORD | docker login $REGISTRY -u $REGISTRY_USER --password-stdin - echo $REGISTRY_PASSWORD | docker login $REGISTRY -u $REGISTRY_USER --password-stdin
- docker build \ - docker build
-t $REGISTRY/$ORGANIZATION/$REPO:$TAG \ -t $REGISTRY/$ORGANIZATION/$REPO:$TAG
-t $REGISTRY/$ORGANIZATION/$REPO:$(date +%F) \ -t $REGISTRY/$ORGANIZATION/$REPO:$(date +%F)
-t $REGISTRY/$ORGANIZATION/$REPO:latest \ -t $REGISTRY/$ORGANIZATION/$REPO:latest
--pull \ --pull
--build-arg $BUILD_ARGS \ --build-arg $BUILD_ARGS
-f $DOCKERFILE \ -f $DOCKERFILE
$CONTEXT $CONTEXT
- docker push $REGISTRY/$ORGANIZATION/$REPO:latest - docker push $REGISTRY/$ORGANIZATION/$REPO:latest