diff --git a/.woodpecker.yaml b/.woodpecker.yaml index 692378c..6c0d266 100644 --- a/.woodpecker.yaml +++ b/.woodpecker.yaml @@ -44,6 +44,11 @@ steps: image: alpine:3.19 when: event: [ push ] + environment: + GIT_USERNAME: + from_secret: GIT_USERNAME + GIT_TOKEN: + from_secret: GIT_TOKEN commands: - apk add --no-cache git yq - git config --global user.name "woodpecker-bot" @@ -53,8 +58,4 @@ steps: - yq -i '.image.tag = "${CI_COMMIT_SHA:0:7}"' manifests/labmap/values.yaml - git add manifests/labmap/values.yaml - "git commit -m 'labmap: update image tag to ${CI_COMMIT_SHA:0:7}' || echo 'No changes'" - - git push origin master - environment: - from_secret: - - GIT_USERNAME - - GIT_TOKEN \ No newline at end of file + - git push origin master \ No newline at end of file