Add environment

This commit is contained in:
Florian Hoss 2023-06-27 15:55:35 +02:00
parent 1bcada3008
commit bf3bd89bab
3 changed files with 5 additions and 1 deletions

View file

@ -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

View file

@ -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

2
dev.sh
View file

@ -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