Fixed pipeline
continuous-integration/drone/push Build is failing Details
continuous-integration/drone/promote/production Build is failing Details

This commit is contained in:
Jim Martens 2023-08-17 22:50:20 +02:00
parent 45e5c473ff
commit 395fa52962
1 changed files with 2 additions and 2 deletions

View File

@ -123,7 +123,7 @@ steps:
- name: modify deployed image
image: alpine
commands:
- sed -i -r "s/(wahlrecht_image_version:).*/\1\ $IMAGE_VERSION/" inventories/host_vars/api-server/public.yaml
- sed -i -r "s/(wahlrecht_image_version:).*/\1\ $IMAGE_VERSION/" ansible/inventories/host_vars/api-server/public.yaml
- name: save modified variable file
image: alpine/git
environment:
@ -136,7 +136,7 @@ steps:
- touch $HOME/.ssh/known_hosts
- chmod 600 $HOME/.ssh/known_hosts
- ssh-keyscan -H git.2martens.de > $HOME/.ssh/known_hosts 2>/dev/null
- git add inventories/host_vars/api-server/public.yaml
- git add ansible/inventories/host_vars/api-server/public.yaml
- git commit -m "[Drone] Changed wahlrecht_image_version to $IMAGE_VERSION"
- git push origin main
- name: deploy image