From 9c80d9d6b21d4990be12eead34e65fe52c98d115 Mon Sep 17 00:00:00 2001 From: Pierre Smeyers <pierre.smeyers@gmail.com> Date: Wed, 18 May 2022 19:15:05 +0200 Subject: [PATCH] chore(cicd): use image for extract-script job --- .gitlab-ci.yml | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 702b102..2ef9ade 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,4 +1,7 @@ include: + - project: 'to-be-continuous/tools/gitlab-ci' + ref: 'master' + file: '/templates/extract.yml' - project: 'to-be-continuous/tools/gitlab-ci' ref: 'master' file: '/templates/validation.yml' @@ -20,21 +23,6 @@ variables: GITLAB_CI_FILES: "templates/gitlab-ci-gcloud.yml" BASH_SHELLCHECK_FILES: "*.sh" -# extract the Bash script from template (for ShellCheck job) -extract-script: - stage: .pre - script: - - echo "#!/bin/bash" > script.sh - - sed -n '/BEGSCRIPT/,/ENDSCRIPT/p' "$GITLAB_CI_FILES" | sed 's/^ //' >> script.sh - - export LC_ALL=C.UTF-8 - artifacts: - when: always - name: extracted template script - expire_in: 1h - paths: - - script.sh - - semantic-release: rules: # on production branch(es): auto if SEMREL_AUTO_RELEASE_ENABLED -- GitLab