Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
es06-epf
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
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Olivier ABDELNOUR
es06-epf
Commits
037ed17c
Commit
037ed17c
authored
Feb 23, 2024
by
Olivier ABDELNOUR
Browse files
Options
Downloads
Patches
Plain Diff
wip
parent
6c17101f
No related branches found
No related tags found
No related merge requests found
Pipeline
#59841
failed
Feb 23, 2024
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+2
-1
2 additions, 1 deletion
.gitlab-ci.yml
template/.gitlab-ci-m3-press-milestone.yml
+110
-0
110 additions, 0 deletions
template/.gitlab-ci-m3-press-milestone.yml
with
112 additions
and
1 deletion
.gitlab-ci.yml
+
2
−
1
View file @
037ed17c
include
:
-
remote
:
'
https://gitlab.master3.takima.io/guide/tools/pipeline-templates/-/blob/main/templates/.gitlab-ci-m3press-milestone.yml'
file
:
"
./templates/.gitlab-ci-m3press-milestone.yml"
\ No newline at end of file
This diff is collapsed.
Click to expand it.
template/.gitlab-ci-m3-press-milestone.yml
0 → 100644
+
110
−
0
View file @
037ed17c
stages
:
-
doc
-
doc-deploy
-
'
deploy
resources'
variables
:
M3_DOCS_FOLDER
:
docs
# docs is the folder containing public markdown files
M3_PRESS_URL
:
://guide.${CI_PAGES_DOMAIN}
M3_GITLAB_URL
:
${CI_SERVER_URL}
M3_REGISTRY_URL
:
${CI_REGISTRY}
## resources
M3_RESOURCES_JOB
:
resources
M3_RESOURCES_FOLDER
:
resources
M3_RESOURCES_API
:
${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/jobs/artifacts/${CI_DEFAULT_BRANCH}
M3_RESOURCES_ARCHIVE_URL
:
${M3_RESOURCES_API}/download?job=${M3_RESOURCES_JOB}
## file resources
M3_RESOURCES_FILE_JOB
:
file-resources
M3_RESOURCES_FILE_URL
:
${M3_RESOURCES_API}/raw/${M3_RESOURCES_FOLDER}/@{RESOURCE_PATH}?job=${M3_RESOURCES_FILE_JOB}
## correction
M3_CORRECTION_JOB
:
correction
M3_CORRECTION_FOLDER
:
done
M3_CORRECTION_API
:
${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/jobs/artifacts/${CI_DEFAULT_BRANCH}
M3_CORRECTION_ARCHIVE_URL
:
${M3_CORRECTION_API}/download?job=${M3_CORRECTION_JOB}
M3_CORRECTION_FILE_JOB
:
file-correction
M3_CORRECTION_FILE_URL
:
${M3_CORRECTION_API}/raw/${M3_CORRECTION_FOLDER}/@{RESOURCE_PATH}?job=${M3_CORRECTION_FILE_JOB}
workflow
:
rules
:
-
if
:
$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
build-doc
:
stage
:
doc
tags
:
-
"
m3-press"
image
:
name
:
registry.master3.takima.io/guide/tools/m3-press
entrypoint
:
[
"
"
]
script
:
-
m3press build ${M3_DOCS_FOLDER}
artifacts
:
paths
:
-
"
dist"
untracked
:
false
expire_in
:
30 days
pages
:
stage
:
doc-deploy
image
:
alpine
tags
:
-
"
m3-press"
needs
:
-
build-doc
script
:
-
rm -rf public
-
mv ./dist public
artifacts
:
paths
:
-
public
# ---------------- build resources ----------------
.resources
:
stage
:
'
deploy
resources'
image
:
alpine
tags
:
-
"
m3-press"
variables
:
ARCHIVE_FOLDER
:
${M3_RESOURCES_FOLDER}
script
:
-
echo "Archiving $ARCHIVE_FOLDER folder as an artifact"
artifacts
:
name
:
$ARTIFACT_NAME
paths
:
-
${ARCHIVE_FOLDER}/**
expire_in
:
1 day
resources
:
extends
:
.resources
variables
:
ARCHIVE_FOLDER
:
${M3_RESOURCES_FOLDER}
ARTIFACT_NAME
:
resources
correction
:
extends
:
.resources
variables
:
ARCHIVE_FOLDER
:
${M3_CORRECTION_FOLDER}
ARTIFACT_NAME
:
correction
.file-resources
:
extends
:
.resources
script
:
-
apk add zip
-
echo "creating archive for resources in ${ARCHIVE_FOLDER}"
-
mkdir -p ${ARCHIVE_FOLDER} && cd ${ARCHIVE_FOLDER}
-
find . -mindepth 1 -maxdepth 1 -type d | xargs -n1 -r sh -c 'zip -r $0.zip $0'
file-resources
:
extends
:
.file-resources
variables
:
ARCHIVE_FOLDER
:
${M3_RESOURCES_FOLDER}
ARTIFACT_NAME
:
resources-files
file-correction
:
extends
:
.file-resources
variables
:
ARCHIVE_FOLDER
:
${M3_CORRECTION_FOLDER}
ARTIFACT_NAME
:
correction-files
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