vault-wrap: правка скриптов запуска.

This commit is contained in:
svkalinin 2024-07-10 15:00:54 +03:00
parent 151d9d7c9a
commit 7b29cf67b5

View File

@ -62,7 +62,31 @@ vault_wrap_deploy:
<<: *dedicated-runner <<: *dedicated-runner
stage: deploy stage: deploy
script: 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 - if [ -e .ci_status/vault_wrap_release ]; then docker-compose -f docker-compose.yml up -d vault-wrap; fi
only: only:
refs: refs:
- main - 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