Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
l3m61proba
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
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
tzanev
l3m61proba
Commits
df6e5548
Commit
df6e5548
authored
1 year ago
by
Kroum Tzanev
Browse files
Options
Downloads
Patches
Plain Diff
passage à gm 0.16 pour le ci/cd
parent
3cc58a80
No related branches found
No related tags found
No related merge requests found
Pipeline
#37575
passed
1 year ago
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+5
-15
5 additions, 15 deletions
.gitlab-ci.yml
with
5 additions
and
15 deletions
.gitlab-ci.yml
+
5
−
15
View file @
df6e5548
variables
:
DOCKER_DRIVER
:
overlay2
# for speed up
pages
:
image
:
mrnonz/alpine-git-curl:alpine3.16
script
:
# get gm
-
curl -sL https://github.com/kpym/gm/releases/download/v0.12.0/gm_0.12.0_Linux_64bit.tar.gz | tar -zxvf - gm
# protect gm to be copied in public (no dot files are copied)
-
mv gm .gm
# fetch all branches and tags
-
git fetch --all --tags
# récupération de gm
-
wget -c https://github.com/kpym/gm/releases/download/v0.16.0/gm_0.16.0_Linux_64bit.tar.gz -O - | tar -C /usr/local/bin -xz gm
# ---------------------------------------- 2023
# make public (artifacts) folder
-
mkdir public/$YEAR
# generate index.html from README.md
-
./.gm -qc jasonm23-foghorn -t M1Analyse stdin <README.md >public/$YEAR/index.html
# move all sources to public/$YEAR (artifacts)
-
find . -mindepth 1 -maxdepth 1 ! -name 'public' ! -name '.*'
-
find . -mindepth 1 -maxdepth 1 ! -name 'public' ! -name '.*' -exec mv -t public/$YEAR/ {} +
# - git checkout v2023
# - YEAR=2023
-
gm --pages --out-dir public/$YEAR '**/*'
artifacts
:
paths
:
-
public
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