Update deploy
This commit is contained in:
parent
f500f2a652
commit
75170646ba
1 changed files with 3 additions and 2 deletions
|
@ -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"'
|
||||
|
|
Loading…
Reference in a new issue