diff --git a/.woodpecker/main.yml b/.woodpecker/main.yml index 931fde8..4a7e416 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