Corrected commands variables expansion
Some checks failed
ci/woodpecker/push/build Pipeline failed

This commit is contained in:
Marcin-Ramotowski
2025-07-22 19:30:03 +02:00
parent 55eeec730d
commit a2c2e39a1b

View File

@ -17,12 +17,12 @@ steps:
environment: environment:
ACR_NAME: marcin00 ACR_NAME: marcin00
CLIENT_ID: c302726f-fafb-4143-94c1-67a70975574a CLIENT_ID: c302726f-fafb-4143-94c1-67a70975574a
DOCKER_IMAGE: marcin00.azurecr.io/user-microservice:${CI_COMMIT_SHA}
commands: commands:
- docker build -t ${DOCKER_IMAGE} --build-arg APP_VERSION=${CI_COMMIT_SHA} --build-arg BUILD_DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ") . - export DOCKER_IMAGE=marcin00.azurecr.io/user-microservice:${CI_COMMIT_SHA}
- az login --identity --client-id ${CLIENT_ID} - docker build -t $DOCKER_IMAGE --build-arg APP_VERSION=${CI_COMMIT_SHA} --build-arg BUILD_DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ") .
- az acr login --name ${ACR_NAME} - az login --identity --client-id $CLIENT_ID
- docker push ${DOCKER_IMAGE} - az acr login --name $ACR_NAME
- docker push $DOCKER_IMAGE
backend_options: backend_options:
kubernetes: kubernetes:
annotations: annotations:
@ -40,16 +40,16 @@ steps:
commands: commands:
- mkdir -p ~/.ssh - mkdir -p ~/.ssh
- echo "${GITEA_KNOWN_HOST}" >> ~/.ssh/known_hosts - echo "$GITEA_KNOWN_HOST" >> ~/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hosts - chmod 644 ~/.ssh/known_hosts
- echo "${GITEA_DEPLOY_KEY}" > ~/.ssh/id_rsa - echo "$GITEA_DEPLOY_KEY" > ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa - chmod 600 ~/.ssh/id_rsa
- git config --global user.name "woodpecker[bot]" - git config --global user.name "woodpecker[bot]"
- git config --global user.email "woodpecker@marcin00.pl" - git config --global user.email "woodpecker@marcin00.pl"
- git clone "${DEPLOY_REPO}" --branch woodpecker-deploy - git clone $DEPLOY_REPO --branch woodpecker-deploy
- cd user-microservice-deploy - cd user-microservice-deploy
- | - |