diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0e90b0e..7745ec9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,7 +6,6 @@ variables: ALPINE_VERSION: '3' DEBIAN_IMAGE: '12' TELEPORT_VERSION: '13.1.1' - TELEPORT_HOST: 'tp.fhoss.de' image: docker:$DOCKER_VERSION-git @@ -74,12 +73,12 @@ deploy_release: image: debian:${DEBIAN_IMAGE}-slim id_tokens: TBOT_GITLAB_JWT: - aud: $TELEPORT_HOST + aud: tp.fhoss.de script: - apt-get update && apt-get install curl -y - cd /tmp - 'curl -O https://cdn.teleport.dev/teleport-v${TELEPORT_VERSION}-linux-amd64-bin.tar.gz' - tar -xvf teleport-v${TELEPORT_VERSION}-linux-amd64-bin.tar.gz - ./teleport/install - - 'tbot start --token=gitlab --destination-dir=/tmp/tbot-user --data-dir=/tmp/tbot-data --auth-server=${TELEPORT_HOST}:443 --join-method=gitlab --oneshot' - - 'tsh -i /tmp/tbot-user/identity --proxy ${TELEPORT_HOST}:443 ssh bot@benelli "docker compose -f /opt/docker/home/docker-compose.yml up -d --pull always"' + - '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"'