diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1a40266a8eeff637ac1d06509a8826c088bc1dce..a8dee3e96372ce1803838d863041fd54cce09fb7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -203,7 +203,7 @@ destroy-psc: EC_SERVICE_ATTACHMENT_URI: $EC_SERVICE_ATTACHMENT_URI EC_DNS_ZONE: $EC_DNS_ZONE GCP_SERVICE_ACCOUNT: $GCP_SA - script: + before_script: - echo $GCP_SERVICE_ACCOUNT > gcp-sa.json - ls -la - cat gcp-sa.json @@ -221,8 +221,10 @@ destroy-psc: - gcloud config set project $GCP_PROJECT_ID - echo "Set Project OK" - cd $GCLOUD_ROOT_PSC - - chmod +x ./destroy-psc.sh - - ./destroy-psc.sh + script: + - | + chmod +x ./destroy-psc.sh + ./destroy-psc.sh artifacts: paths: - ${CI_PROJECT_DIR}/pscConnectionId.env