From 7b29cf67b5ba9c5631d7a61b41b6344856fe31a8 Mon Sep 17 00:00:00 2001 From: svkalinin Date: Wed, 10 Jul 2024 15:00:54 +0300 Subject: [PATCH] =?UTF-8?q?vault-wrap:=20=20=D0=BF=D1=80=D0=B0=D0=B2=D0=BA?= =?UTF-8?q?=D0=B0=20=D1=81=D0=BA=D1=80=D0=B8=D0=BF=D1=82=D0=BE=D0=B2=20?= =?UTF-8?q?=D0=B7=D0=B0=D0=BF=D1=83=D1=81=D0=BA=D0=B0.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitlab-ci.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3254bfd..105f01b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -62,7 +62,31 @@ vault_wrap_deploy: <<: *dedicated-runner stage: deploy script: + - mkdir -p /srv/docker/volumes/vault-wrap_vault-wrap-conf/_data/ + - cp /etc/ssl/certs/runner1-prod.corp.samsonopt.ru.crt /srv/docker/volumes/vault-wrap_vault-wrap-conf/_data/ + - cp /etc/ssl/private/runner1-prod.corp.samsonopt.ru.key /srv/docker/volumes/vault-wrap_vault-wrap-conf/_data/ + - export TLS_CERT_FILE=runner1-prod.corp.samsonopt.ru.crt + - export TLS_KEY_FILE=runner1-prod.corp.samsonopt.ru.key - if [ -e .ci_status/vault_wrap_release ]; then docker-compose -f docker-compose.yml up -d vault-wrap; fi only: refs: - main + +traefik_deploy: + <<: *dedicated-runner + stage: deploy + script: + - mkdir -p /srv/docker/volumes/traefik-conf/_data + - mkdir -p /srv/docker/volumes/traefik-traefik-ssl/_data + - mkdir -p /srv/docker/volumes/traefik-dynamic-conf/_data + - cp /etc/ssl/certs/runner1-prod.corp.samsonopt.ru.crt /srv/docker/volumes/traefik-traefik-ssl/_data + - cp /etc/ssl/private/runner1-prod.corp.samsonopt.ru.key /srv/docker/volumes/traefik-traefik-ssl/_data + - cp traefik-files/traefik.yml /srv/docker/volumes/traefik-conf/_data/traefik.yml + - cp traefik-files/certificates.yml /srv/docker/volumes/traefik-dynamic-conf/_data/certificates.yml + - export TLS_CERT_FILE=runner1-prod.corp.samsonopt.ru.crt + - export TLS_KEY_FILE=runner1-prod.corp.samsonopt.ru.key + - if [ -e .ci_status/vault_wrap_release ]; then docker-compose -f docker-compose.yml up -d traefik; fi + only: + refs: + - main +