From 414f54d50f249a72cae13863c7ee35eff3be5338 Mon Sep 17 00:00:00 2001 From: Adrien Carpentier Date: Thu, 3 Oct 2024 19:01:03 +0900 Subject: [PATCH] ci: create a GitLab pipeline instead of triggering one --- .circleci/config.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 735b8f4f..1104943e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -121,14 +121,14 @@ jobs: - attach_workspace: at: . - run: - name: Trigger GitLab CI pipeline to deploy + name: Create a GitLab CI pipeline for deploying command: | # https://docs.gitlab.com/ee/api/pipeline_triggers.html source .env_vars - echo "Triggering a new GitLab Pipeline to deploy Hydra version $VERSION on dev with tag light..." + echo "Create a GitLab CI pipeline for deploying Hydra version $VERSION on dev with tag light..." curl --request POST \ - --form token=${GITLAB_PIPELINE_TOKEN} \ + --header "PRIVATE-TOKEN: ${GITLAB_PRIVATE_TOKEN}" \ --form ref=main \ - --form "variables[SITE]=dev" \ + --form "variables[SITE]=dev.data.gouv.fr" \ --form "variables[APP]=hydra" \ --form "variables[TAGS]=light" \ --form "variables[PACKAGE_VERSION]=${VERSION}" \