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: tags:
- docker - docker
stages: stages:
# - validate - validate
- deploy - deploy
# before_script: before_script:
# - export ANSIBLE_CONFIG=$CI_PROJECT_DIR/ansible.cfg - export ANSIBLE_CONFIG=$CI_PROJECT_DIR/ansible.cfg
# ansible-lint: ansible-lint:
# stage: validate stage: validate
# script: script:
# - ansible-lint - ansible-lint
# syntax-check: syntax-check:
# stage: validate stage: validate
# script: script:
# - ansible-playbook --syntax-check playbooks/openvpn.yml - ansible-playbook --syntax-check playbooks/openvpn.yml
deploy-prod: deploy-prod:
stage: deploy stage: deploy
# when: manual when: manual
before_script: before_script:
- echo "Setting up ssh ..." - echo "Setting up ssh ..."
- mkdir -p ~/.ssh - mkdir -p ~/.ssh
@@ -28,10 +28,6 @@ deploy-prod:
- chmod 600 ~/.ssh/id_ed25519 - chmod 600 ~/.ssh/id_ed25519
- cat "$SSH_PUBLIC_KEY_FILE" > ~/.ssh/id_ed25519.pub - cat "$SSH_PUBLIC_KEY_FILE" > ~/.ssh/id_ed25519.pub
- chmod 600 ~/.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 - export ANSIBLE_CONFIG=$CI_PROJECT_DIR/ansible.cfg
script: script: