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