Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
shiny-k8s
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hub
shiny-k8s
Commits
c4e7b51f
Commit
c4e7b51f
authored
11 months ago
by
Bryan BRANCOTTE
Browse files
Options
Downloads
Patches
Plain Diff
fetch image list fragment
parent
0cfe2c4e
No related branches found
No related tags found
No related merge requests found
Pipeline
#133180
passed
11 months ago
Stage: build
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+24
-1
24 additions, 1 deletion
.gitlab-ci.yml
with
24 additions
and
1 deletion
.gitlab-ci.yml
+
24
−
1
View file @
c4e7b51f
page
s
:
fetch_fragment
s
:
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment