Skip to content
Snippets Groups Projects
Commit c4e7b51f authored by Bryan BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

fetch image list fragment

parent 0cfe2c4e
No related branches found
No related tags found
No related merge requests found
Pipeline #133180 passed
pages: fetch_fragments:
stage: build stage: build
needs: [] needs: []
image: alpine:latest
variables:
JOB_NAME: publish_listing
TARGET_BRANCH: rework-image-matrix-and-export
before_script:
- apk add --update --no-cache curl jq
rules:
- if: $CI_COMMIT_BRANCH == "docs"
script:
- TARGET_PIPELINE_ID=`curl -s "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/pipelines?ref=${TARGET_BRANCH}&private_token=${PRIVATE_TOKEN}" | jq ".[0].id"`
- TARGET_JOB_ID=`curl ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/pipelines/${TARGET_PIPELINE_ID}/jobs | jq --arg JOB_NAME "$JOB_NAME" '.[] | select(.name==$JOB_NAME)' | jq .id`
- curl ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/jobs/${TARGET_JOB_ID}/artifacts --output fragments.zip
- unzip fragments.zip
artifacts:
paths:
- image_list.csv
- image_list.rst
pages:
stage: build
needs: ["fetch_fragments"]
rules: rules:
- if: $CI_COMMIT_BRANCH == "docs" - if: $CI_COMMIT_BRANCH == "docs"
image: python:3.10 image: python:3.10
script: script:
- mv image_list* source/user_guide/
- apt-get update && apt-get install -y python3-dev graphviz libgraphviz-dev - apt-get update && apt-get install -y python3-dev graphviz libgraphviz-dev
- pip install -r requirements.txt - pip install -r requirements.txt
- make html - make html
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment