Update .gitlab-ci.yml file
This commit is contained in:
+1
-3
@@ -26,14 +26,12 @@ tests_job1:
|
|||||||
|
|
||||||
deploy_to_server:
|
deploy_to_server:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
image: cytopia/ansible:latest
|
image: ghcr.io/ansible/creator-ee:v0.22.0
|
||||||
variables:
|
variables:
|
||||||
ANSIBLE_HOST_KEY_CHECKING: "False"
|
ANSIBLE_HOST_KEY_CHECKING: "False"
|
||||||
before_script:
|
before_script:
|
||||||
- eval $(ssh-agent -s)
|
|
||||||
- echo "$ANSIBLE_PRIVATE_KEY" > ./deploy_key
|
- echo "$ANSIBLE_PRIVATE_KEY" > ./deploy_key
|
||||||
- chmod 600 ./deploy_key
|
- chmod 600 ./deploy_key
|
||||||
- ssh-add ./deploy_key
|
|
||||||
script:
|
script:
|
||||||
- cd auto-deployment/
|
- cd auto-deployment/
|
||||||
- ansible-playbook -i inventory.ini A_deploy.yml --private-key=./deploy_key
|
- ansible-playbook -i inventory.ini A_deploy.yml --private-key=./deploy_key
|
||||||
|
|||||||
Reference in New Issue
Block a user