back to prev

This commit is contained in:
dvirlabs 2025-06-16 21:09:41 +03:00
parent 75e6939d82
commit 1743c65771

View File

@ -37,29 +37,4 @@ steps:
username: username:
from_secret: DOCKER_USERNAME from_secret: DOCKER_USERNAME
password: password:
from_secret: DOCKER_PASSWORD from_secret: DOCKER_PASSWORD
update-values:
name: Update my-apps image tag
image: alpine
when:
branch: master
event: push
environment:
GIT_SSH_COMMAND: 'ssh -i /root/.ssh/id_rsa -o StrictHostKeyChecking=no'
GIT_DEPLOY_KEY:
from_secret: GIT_DEPLOY_KEY
commands:
- apk add --no-cache git openssh yq
- mkdir -p ~/.ssh
- echo "$GIT_DEPLOY_KEY" > ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa
- git config --global user.name "Woodpecker Bot"
- git config --global user.email "ci@dvirlabs.com"
- git clone git@192.168.10.242:dvirlabs/my-apps.git
- cd my-apps/manifests/labmap
- yq e '.image.frontend.tag = "${CI_COMMIT_SHA:0:7}"' -i values.yaml
- yq e '.image.backend.tag = "${CI_COMMIT_SHA:0:7}"' -i values.yaml
- git add values.yaml
- git commit -m "Update labmap image tags to ${CI_COMMIT_SHA:0:7}" || echo "No changes to commit"
- git push origin master