diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 190bd47e86704640ec950795c8ba84e1667e77c5..0a842360f0e7307f67e8b55ab7d973a2fded4ee2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -9,16 +9,18 @@ stages: default: before_script: - set -eux - - env + # env -0 | sort -z | tr '\0' '\n': Sort env output alphabetically, keeping multiline variables intact + # egrep: Remove sensitive information from the output of env + - env -0 | sort -z | tr '\0' '\n' | egrep -ve '^(DOCKER_AUTH_CONFIG|GOOGLE_APPLICATION_CREDENTIALS)=.*' interruptible: true tags: - 1cpu-4gb # build on smaller machine build_docker: - image: 'europe-north1-docker.pkg.dev/holi-shared/docker-hub-remote/docker:20.10' + image: 'europe-north1-docker.pkg.dev/holi-shared/docker-hub-remote/docker:27' stage: "build" services: - - docker:20.10-dind + - 'docker:27-dind' variables: # this could be fetched via terraform output ("gcr_location" in infra project), but then we would need an extra job for terraform ARTIFACT_IMAGE: 'europe-north1-docker.pkg.dev/holi-shared/docker/holi-chat-server' @@ -38,7 +40,7 @@ build_docker: .deploy: stage: "deploy" image: - name: 'europe-north1-docker.pkg.dev/holi-shared/docker-hub-remote/hashicorp/terraform:1.6.1' + name: 'europe-north1-docker.pkg.dev/holi-shared/docker-hub-remote/hashicorp/terraform:1.6.6' # default entrypoint is terraform command, but we want to run shell scripts entrypoint: ["/bin/sh", "-c"] variables: