Use envs
This commit is contained in:
parent
75170646ba
commit
3c410957cf
1 changed files with 4 additions and 3 deletions
|
@ -6,6 +6,7 @@ variables:
|
|||
ALPINE_VERSION: '3'
|
||||
DEBIAN_IMAGE: '12'
|
||||
TELEPORT_VERSION: '13.1.1'
|
||||
TELEPORT_HOST: 'tp.fhoss.de'
|
||||
|
||||
image: docker:$DOCKER_VERSION-git
|
||||
|
||||
|
@ -73,12 +74,12 @@ deploy_release:
|
|||
image: debian:${DEBIAN_IMAGE}-slim
|
||||
id_tokens:
|
||||
TBOT_GITLAB_JWT:
|
||||
aud: tp.fhoss.de
|
||||
aud: $TELEPORT_HOST
|
||||
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=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"'
|
||||
- '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"'
|
||||
|
|
Loading…
Reference in a new issue