From 49b997aa71c97d93a1859bd692e08da638597ff6 Mon Sep 17 00:00:00 2001 From: Michael Balsillie Date: Sun, 21 Aug 2022 23:58:33 +1200 Subject: [PATCH] ditch expansions --- .woodpecker/main.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.woodpecker/main.yml b/.woodpecker/main.yml index 4a7e416..eca876a 100644 --- a/.woodpecker/main.yml +++ b/.woodpecker/main.yml @@ -21,8 +21,8 @@ pipeline: - SOURCE_ORGANIZATION=mirrors - REPO=matrix-service-synapse commands: - - git clone https://$${REGISTRY}/$${SOURCE_ORGANIZATION}/$${REPO}.git /git/$${REPO} - - cd /git/$${REPO} + - git clone https://$REGISTRY/$SOURCE_ORGANIZATION/$REPO.git /git/$REPO + - cd /git/$REPO - git checkout $TAG docker-build: @@ -42,14 +42,14 @@ pipeline: - CONTEXT=. commands: - export DOCKER_BUILDKIT=1 - - cd /git/$${REPO} - - echo $REGISTRY_PASSWORD | docker login $${REGISTRY} -u $${REGISTRY_USER} --password-stdin + - 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 + -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 -a $${REGISTRY}/$${ORGANIZATION}/$${REPO} \ No newline at end of file + --build-arg $BUILD_ARGS + -f $DOCKERFILE + $CONTEXT + - docker push -a $REGISTRY/$ORGANIZATION/$REPO \ No newline at end of file