diff --git a/.gitlab/_common.gitlab-ci.yml b/.gitlab/_common.gitlab-ci.yml index 2cd2c34..40a16b6 100644 --- a/.gitlab/_common.gitlab-ci.yml +++ b/.gitlab/_common.gitlab-ci.yml @@ -6,6 +6,7 @@ variables: ALPINE_VERSION: '3' DEBIAN_VERSION: '12' TELEPORT_VERSION: '13.1.1' + PRODUCTION_URL: 'https://home.unjx.de' image: docker:$DOCKER_VERSION-git diff --git a/.gitlab/deploy.gitlab-ci.yml b/.gitlab/deploy.gitlab-ci.yml index 1a1d2a0..7ec606b 100644 --- a/.gitlab/deploy.gitlab-ci.yml +++ b/.gitlab/deploy.gitlab-ci.yml @@ -13,3 +13,6 @@ deploy_release: - ./teleport/install - 'tbot start --token=gitlab --destination-dir=/tmp/tbot-user --data-dir=/tmp/tbot-data --auth-server=tp.fhoss.de:443 --join-method=gitlab --oneshot' - 'tsh -i /tmp/tbot-user/identity --proxy tp.fhoss.de:443 ssh bot@benelli "docker compose -f /opt/docker/home/docker-compose.yml up -d --pull always"' + environment: + name: production + url: $PRODUCTION_URL diff --git a/dev.sh b/dev.sh index c335c6f..c577fc6 100755 --- a/dev.sh +++ b/dev.sh @@ -15,7 +15,7 @@ parse_yaml() { }' } -eval $(parse_yaml .gitlab-ci.yml) +eval $(parse_yaml .gitlab/_common.gitlab-ci.yml) echo "DOCKER_VERSION="$variables_DOCKER_VERSION >.env echo "GOLANG_VERSION="$variables_GOLANG_VERSION >>.env