diff --git a/.gitlab/build.gitlab-ci.yml b/.gitlab/build.gitlab-ci.yml index 24a26d8..f403dd9 100644 --- a/.gitlab/build.gitlab-ci.yml +++ b/.gitlab/build.gitlab-ci.yml @@ -1,4 +1,4 @@ -build_release: +build: rules: !reference [.rules:release, rules] stage: build extends: .login_registry diff --git a/.gitlab/deploy.gitlab-ci.yml b/.gitlab/deploy.gitlab-ci.yml index 8c193d0..6ca894b 100644 --- a/.gitlab/deploy.gitlab-ci.yml +++ b/.gitlab/deploy.gitlab-ci.yml @@ -1,4 +1,4 @@ -deploy_release: +deploy: rules: !reference [.rules:release, rules] stage: deploy image: debian:${DEBIAN_VERSION}-slim @@ -11,7 +11,7 @@ deploy_release: - '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=bot --destination-dir=/tmp/tbot-user --data-dir=/tmp/tbot-data --auth-server=tp.unjx.de:443 --join-method=gitlab --oneshot' + - 'tbot start --token=gitlab --destination-dir=/tmp/tbot-user --data-dir=/tmp/tbot-data --auth-server=tp.unjx.de:443 --join-method=gitlab --oneshot' - 'tsh -i /tmp/tbot-user/identity --proxy tp.unjx.de:443 ssh bot@berg "docker compose -f /opt/docker/home/docker-compose.yml up -d --pull always"' - 'tsh -i /tmp/tbot-user/identity --proxy tp.unjx.de:443 ssh bot@berg "docker system prune --force"' environment: