Update .gitlab-ci.yml file

This commit is contained in:
2026-06-17 15:39:27 +02:00
committed by gitea_admin
parent 9ae23528f5
commit 40c2545af6
+12 -16
View File
@@ -3,24 +3,24 @@ default:
tags:
- docker
stages:
# - validate
- validate
- deploy
# before_script:
# - export ANSIBLE_CONFIG=$CI_PROJECT_DIR/ansible.cfg
before_script:
- export ANSIBLE_CONFIG=$CI_PROJECT_DIR/ansible.cfg
# ansible-lint:
# stage: validate
# script:
# - ansible-lint
ansible-lint:
stage: validate
script:
- ansible-lint
# syntax-check:
# stage: validate
# script:
# - ansible-playbook --syntax-check playbooks/openvpn.yml
syntax-check:
stage: validate
script:
- ansible-playbook --syntax-check playbooks/openvpn.yml
deploy-prod:
stage: deploy
# when: manual
when: manual
before_script:
- echo "Setting up ssh ..."
- mkdir -p ~/.ssh
@@ -28,10 +28,6 @@ deploy-prod:
- chmod 600 ~/.ssh/id_ed25519
- cat "$SSH_PUBLIC_KEY_FILE" > ~/.ssh/id_ed25519.pub
- chmod 600 ~/.ssh/id_ed25519.pub
- wc -c ~/.ssh/id_ed25519
- md5sum ~/.ssh/id_ed25519
- cat -A ~/.ssh/id_ed25519 | head -3
- cat -A ~/.ssh/id_ed25519 | tail -3
- export ANSIBLE_CONFIG=$CI_PROJECT_DIR/ansible.cfg
script: