Fixed pipeline
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user