Change deployment
This commit is contained in:
parent
3a01f6f7bc
commit
f54716e51b
1 changed files with 4 additions and 4 deletions
|
@ -4,16 +4,16 @@ deploy_release:
|
||||||
image: debian:${DEBIAN_VERSION}-slim
|
image: debian:${DEBIAN_VERSION}-slim
|
||||||
id_tokens:
|
id_tokens:
|
||||||
TBOT_GITLAB_JWT:
|
TBOT_GITLAB_JWT:
|
||||||
aud: tp.fhoss.de
|
aud: tp.unjx.de
|
||||||
script:
|
script:
|
||||||
- apt-get update && apt-get install curl -y
|
- apt-get update && apt-get install curl -y
|
||||||
- cd /tmp
|
- cd /tmp
|
||||||
- '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=gitlab --destination-dir=/tmp/tbot-user --data-dir=/tmp/tbot-data --auth-server=tp.fhoss.de:443 --join-method=gitlab --oneshot'
|
- 'tbot start --token=bot --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.fhoss.de:443 ssh bot@benelli "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.fhoss.de:443 ssh bot@benelli "docker system prune --force"'
|
- 'tsh -i /tmp/tbot-user/identity --proxy tp.unjx.de:443 ssh bot@berg "docker system prune --force"'
|
||||||
environment:
|
environment:
|
||||||
name: production
|
name: production
|
||||||
url: $PRODUCTION_URL
|
url: $PRODUCTION_URL
|
||||||
|
|
Loading…
Reference in a new issue