fix pipeline yaml quoting for Woodpecker v3
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
This commit is contained in:
@@ -2,10 +2,6 @@ when:
|
||||
branch: main
|
||||
event: push
|
||||
|
||||
workspace:
|
||||
base: /woodpecker
|
||||
path: src
|
||||
|
||||
steps:
|
||||
- name: build-and-push
|
||||
image: gcr.io/kaniko-project/executor:debug
|
||||
@@ -21,8 +17,8 @@ steps:
|
||||
- echo "Building $REGISTRY/$REPO:$TAG"
|
||||
- AUTH=$(echo -n "$DOCKER_USERNAME:$DOCKER_PASSWORD" | base64)
|
||||
- mkdir -p /kaniko/.docker
|
||||
- printf "{\"auths\":{\"%s\":{\"auth\":\"%s\"}}}" "$REGISTRY" "$AUTH" > /kaniko/.docker/config.json
|
||||
- /kaniko/executor --context=. --dockerfile=Dockerfile --destination=$REGISTRY/$REPO:$TAG --destination=$REGISTRY/$REPO:latest --insecure --skip-tls-verify --verbosity=info
|
||||
- 'printf "{\"auths\":{\"%s\":{\"auth\":\"%s\"}}}" "$REGISTRY" "$AUTH" > /kaniko/.docker/config.json'
|
||||
- /kaniko/executor --context=$CI_WORKSPACE --dockerfile=$CI_WORKSPACE/Dockerfile --destination=$REGISTRY/$REPO:$TAG --destination=$REGISTRY/$REPO:latest --insecure --skip-tls-verify --verbosity=info
|
||||
|
||||
- name: update-manifests
|
||||
image: alpine
|
||||
@@ -33,10 +29,10 @@ steps:
|
||||
from_secret: docker_password
|
||||
commands:
|
||||
- apk add --no-cache git
|
||||
- TAG=${CI_COMMIT_SHA:0:8}
|
||||
- sed -i "s|image:.*killingdruid/bcard:.*|image: git.mikhailkilin.ru/killingdruid/bcard:$TAG|" k8s/bcard.yaml
|
||||
- git config user.email "ci@mikhailkilin.ru"
|
||||
- git config user.name "Woodpecker CI"
|
||||
- 'TAG=${CI_COMMIT_SHA:0:8}'
|
||||
- 'sed -i "s|image:.*killingdruid/bcard:.*|image: git.mikhailkilin.ru/killingdruid/bcard:$TAG|" k8s/bcard.yaml'
|
||||
- 'git config user.email "ci@mikhailkilin.ru"'
|
||||
- 'git config user.name "Woodpecker CI"'
|
||||
- git add k8s/bcard.yaml
|
||||
- git diff --cached --quiet && echo No_changes || git commit -m "[skip ci] deploy bcard:$TAG"
|
||||
- git push https://$DOCKER_USERNAME:$DOCKER_PASSWORD@git.mikhailkilin.ru/killingdruid/bcard.git HEAD:main
|
||||
- 'git diff --cached --quiet && echo No_changes || git commit -m "[skip ci] deploy bcard:$TAG"'
|
||||
- 'git push https://$DOCKER_USERNAME:$DOCKER_PASSWORD@git.mikhailkilin.ru/killingdruid/bcard.git HEAD:main'
|
||||
|
||||
Reference in New Issue
Block a user