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

This commit is contained in:
2023-08-17 22:50:20 +02:00
parent 45e5c473ff
commit 395fa52962
+2 -2
View File
@@ -123,7 +123,7 @@ steps:
- name: modify deployed image - name: modify deployed image
image: alpine image: alpine
commands: 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 - name: save modified variable file
image: alpine/git image: alpine/git
environment: environment:
@@ -136,7 +136,7 @@ steps:
- touch $HOME/.ssh/known_hosts - touch $HOME/.ssh/known_hosts
- chmod 600 $HOME/.ssh/known_hosts - chmod 600 $HOME/.ssh/known_hosts
- ssh-keyscan -H git.2martens.de > $HOME/.ssh/known_hosts 2>/dev/null - 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 commit -m "[Drone] Changed wahlrecht_image_version to $IMAGE_VERSION"
- git push origin main - git push origin main
- name: deploy image - name: deploy image