diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d44ecf2..7745ec9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -67,7 +67,8 @@ container_scanning: CS_IMAGE: $LATEST_IMAGE CS_DOCKERFILE_PATH: docker/Dockerfile -deploy-job: +deploy_release: + rules: !reference [.rules:release, rules] stage: deploy image: debian:${DEBIAN_IMAGE}-slim id_tokens: @@ -80,4 +81,4 @@ deploy-job: - 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=tp.fhoss.de:443 --join-method=gitlab --oneshot' - - 'tsh -i /tmp/tbot-user/identity --proxy tp.fhoss.de:443 ssh bot@benelli "echo $CI_JOB_ID >> ~/gitlab_run_log"' + - '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"'