diff options
author | rinpatch <rinpatch@sdf.org> | 2021-02-03 17:02:01 +0300 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2021-02-03 17:02:06 +0300 |
commit | 00268b4476dc7bcd85da9b96c44314ddb5a70a07 (patch) | |
tree | 0b9c94f78efceed7e9b6fdc73dd2c619c4e8e851 /.gitlab-ci.yml | |
parent | e2d7c4fd570cf3d4af649bc4a98c927b38088bc2 (diff) | |
download | pleroma-00268b4476dc7bcd85da9b96c44314ddb5a70a07.tar.gz pleroma-00268b4476dc7bcd85da9b96c44314ddb5a70a07.zip |
CI: Add job ref when calling api docs builder
Just grabbing the latest artifact for the branch does not work because
gitlab will only change the latest artifact when the whole pipeline
finishes
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 634c4b893..ed145df52 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -165,13 +165,16 @@ review_app: spec-deploy: stage: deploy + artifacts: + paths: + - spec.json only: - develop@pleroma/pleroma image: alpine:latest before_script: - apk add curl script: - - curl -X POST -F"token=$API_DOCS_PIPELINE_TRIGGER" -F'ref=master' -F"variables[BRANCH]=$CI_COMMIT_REF_NAME" https://git.pleroma.social/api/v4/projects/1130/trigger/pipeline + - curl -X POST -F"token=$API_DOCS_PIPELINE_TRIGGER" -F'ref=master' -F"variables[BRANCH]=$CI_COMMIT_REF_NAME" -F"variables[JOB_REF]=CI_JOB_ID" https://git.pleroma.social/api/v4/projects/1130/trigger/pipeline stop_review_app: |