Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DojoCLI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External 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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dojo Project (HES-SO)
Projects
UI
DojoCLI
Commits
61f65966
Commit
61f65966
authored
1 year ago
by
michael.minelli
Browse files
Options
Downloads
Patches
Plain Diff
CI/CD => Wiki upload: add xz package
parent
d745f43b
No related branches found
No related tags found
1 merge request
!2
Adds a first version of the wiki documentation
Pipeline
#26363
failed
1 year ago
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+7
-2
7 additions, 2 deletions
.gitlab-ci.yml
with
7 additions
and
2 deletions
.gitlab-ci.yml
+
7
−
2
View file @
61f65966
...
...
@@ -290,14 +290,19 @@ upload:packages:wiki:
-
gitlab_package
image
:
registry.gitlab.com/gitlab-ci-utils/curl-jq:latest
script
:
# Install dependencies
-
apk update
-
apk add xz
-
!reference
[
.get_version
,
script
]
-
!reference
[
.get_packages_url
,
script
]
# Create archive
-
tar -v -c -C "${WIKI_FOLDER}" -J -f ${WIKI_ARCHIVE_NAME} .
# Ubuntu: tar --verbose --create --cd wiki-test-2 --xz --file file.tar.bz2
-
WIKI_ARCHIVE_PATH="${ARTIFACTS_FOLDER}/${WIKI_ARCHIVE_NAME}"
-
tar -v -c -C "${CI_PROJECT_DIR}/${WIKI_FOLDER}" -J -f "${WIKI_ARCHIVE_PATH}" .
# Ubuntu: tar --verbose --create --cd wiki-test-2 --xz --file file.tar.bz2
# Send package
-
'
curl
--header
"JOB-TOKEN:
$CI_JOB_TOKEN"
--upload-file
${WIKI_ARCHIVE_
NAME
}
"${PACKAGE_URL_WIKI}";'
-
'
curl
--header
"JOB-TOKEN:
$CI_JOB_TOKEN"
--upload-file
${WIKI_ARCHIVE_
PATH
}
"${PACKAGE_URL_WIKI}";'
rules
:
-
if
:
'
$CI_COMMIT_BRANCH
==
$CI_DEFAULT_BRANCH
||
$CI_COMMIT_BRANCH
=~
/^v[0-9]+(\.[0-9]+)*$/'
...
...
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