Skip to content

Commit

Permalink
feat: use predefines variable for gitlab host
Browse files Browse the repository at this point in the history
this makes configuring superfluous
  • Loading branch information
tgaertner committed Aug 29, 2024
1 parent 46ee494 commit 5d8353a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions deploy/deploy-feature-stop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@ deploy:feature:stop:
dependencies: [ ]
script:
# trigger downstream pipeline
- curl --request POST --form "token=$CI_JOB_TOKEN" --form "variables[UPSTREAM_BRANCH]=$CI_COMMIT_REF_NAME" --form ref=$FEATURE_STOP_DOWNSTREAM_BRANCH "https://$GITLAB_HOST/api/v4/projects/$CI_PROJECT_ID/trigger/pipeline"
- curl --request POST --form "token=$CI_JOB_TOKEN" --form "variables[UPSTREAM_BRANCH]=$CI_COMMIT_REF_NAME" --form ref=$FEATURE_STOP_DOWNSTREAM_BRANCH "$CI_SERVER_URL/api/v4/projects/$CI_PROJECT_ID/trigger/pipeline"
variables:
GIT_STRATEGY: none
GITLAB_HOST: "git.xima.de"
when: manual
environment:
action: stop

0 comments on commit 5d8353a

Please sign in to comment.