Update .gitlab-ci.yml
This commit is contained in:
parent
c2ade641ff
commit
4c7d5eca46
1 changed files with 5 additions and 5 deletions
|
@ -4,7 +4,8 @@ variables:
|
||||||
GOLANG_VERSION: '1.20'
|
GOLANG_VERSION: '1.20'
|
||||||
NODE_VERSION: '18'
|
NODE_VERSION: '18'
|
||||||
ALPINE_VERSION: '3'
|
ALPINE_VERSION: '3'
|
||||||
DEBIAN_VERSION: '12'
|
CURL_IMAGE: '8.1.2'
|
||||||
|
TELEPORT_VERSION: '13.1.1'
|
||||||
|
|
||||||
image: docker:$DOCKER_VERSION-git
|
image: docker:$DOCKER_VERSION-git
|
||||||
|
|
||||||
|
@ -68,15 +69,14 @@ container_scanning:
|
||||||
|
|
||||||
deploy-job:
|
deploy-job:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
image: debian:${DEBIAN_VERSION}-slim
|
image: curlimages/curl:${CURL_IMAGE}
|
||||||
id_tokens:
|
id_tokens:
|
||||||
TBOT_GITLAB_JWT:
|
TBOT_GITLAB_JWT:
|
||||||
aud: tp.fhoss.de
|
aud: tp.fhoss.de
|
||||||
script:
|
script:
|
||||||
- cd /tmp
|
- cd /tmp
|
||||||
- apt-get curl
|
- 'curl -O https://cdn.teleport.dev/teleport-v${TELEPORT_VERSION}-linux-amd64-bin.tar.gz'
|
||||||
- 'curl -O https://cdn.teleport.dev/teleport-v13.1.1-linux-amd64-bin.tar.gz'
|
- tar -xvf teleport-v${TELEPORT_VERSION}-linux-amd64-bin.tar.gz
|
||||||
- tar -xvf teleport-v13.1.1-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=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 "echo $CI_JOB_ID >> ~/gitlab_run_log"'
|
||||||
|
|
Loading…
Reference in a new issue