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