Update ci-cd
This commit is contained in:
parent
f54716e51b
commit
627f0ca875
2 changed files with 3 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
||||||
build_release:
|
build:
|
||||||
rules: !reference [.rules:release, rules]
|
rules: !reference [.rules:release, rules]
|
||||||
stage: build
|
stage: build
|
||||||
extends: .login_registry
|
extends: .login_registry
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
deploy_release:
|
deploy:
|
||||||
rules: !reference [.rules:release, rules]
|
rules: !reference [.rules:release, rules]
|
||||||
stage: deploy
|
stage: deploy
|
||||||
image: debian:${DEBIAN_VERSION}-slim
|
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'
|
- '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
|
- tar -xvf teleport-v${TELEPORT_VERSION}-linux-amd64-bin.tar.gz
|
||||||
- ./teleport/install
|
- ./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 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"'
|
- 'tsh -i /tmp/tbot-user/identity --proxy tp.unjx.de:443 ssh bot@berg "docker system prune --force"'
|
||||||
environment:
|
environment:
|
||||||
|
|
Loading…
Reference in a new issue