diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5120ef0..c700939 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,7 +4,8 @@ variables: GOLANG_VERSION: '1.20' NODE_VERSION: '18' ALPINE_VERSION: '3' - DEBIAN_VERSION: '12' + CURL_IMAGE: '8.1.2' + TELEPORT_VERSION: '13.1.1' image: docker:$DOCKER_VERSION-git @@ -68,15 +69,14 @@ container_scanning: deploy-job: stage: deploy - image: debian:${DEBIAN_VERSION}-slim + image: curlimages/curl:${CURL_IMAGE} id_tokens: TBOT_GITLAB_JWT: aud: tp.fhoss.de script: - cd /tmp - - apt-get curl - - 'curl -O https://cdn.teleport.dev/teleport-v13.1.1-linux-amd64-bin.tar.gz' - - tar -xvf teleport-v13.1.1-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 - ./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"'