Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
IDEA
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
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
713
Warden
IDEA
Commits
9cd35a9c
Commit
9cd35a9c
authored
2 years ago
by
Rajmund Hruška
Browse files
Options
Downloads
Patches
Plain Diff
[CI/CD] Download files located at BACKUP_ZIPFILE_URL
parent
c921cba5
No related branches found
No related tags found
1 merge request
!7
[CI/CD] Download files located at BACKUP_ZIPFILE_URL
Pipeline
#2635
passed
2 years ago
Stage: test
Stage: check-warnings
Stage: build
Stage: deploy
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+10
-9
10 additions, 9 deletions
.gitlab-ci.yml
README.rst
+7
-0
7 additions, 0 deletions
README.rst
idea/__init__.py
+1
-1
1 addition, 1 deletion
idea/__init__.py
with
18 additions
and
10 deletions
.gitlab-ci.yml
+
10
−
9
View file @
9cd35a9c
...
@@ -157,16 +157,17 @@ twine-job:
...
@@ -157,16 +157,17 @@ twine-job:
pages
:
pages
:
stage
:
deploy
stage
:
deploy
script
:
script
:
-
make docs
-
make docs
# Create documentation
-
curl -L --header "JOB-TOKEN:$CI_JOB_TOKEN" "$CI_API_V4_URL/projects/$CI_PROJECT_ID/jobs/artifacts/devel/download?job=pages" -o devel.zip
-
curl -L --header "JOB-TOKEN:$CI_JOB_TOKEN" "$CI_API_V4_URL/projects/$CI_PROJECT_ID/jobs/artifacts/devel/download?job=pages" -o devel.zip
# Download docs and files from devel branch
-
curl -L --header "JOB-TOKEN:$CI_JOB_TOKEN" "$CI_API_V4_URL/projects/$CI_PROJECT_ID/jobs/artifacts/master/download?job=pages" -o master.zip
-
curl -L --header "JOB-TOKEN:$CI_JOB_TOKEN" "$CI_API_V4_URL/projects/$CI_PROJECT_ID/jobs/artifacts/master/download?job=pages" -o master.zip
# Download docs and files from master branch
-
unzip -n '*.zip' ||
true
# Ignore not existing zipfiles
-
unzip -n '*.zip' ||
true
# Unzip and ignore not existing zipfiles
-
mkdir -p public/"$CI_COMMIT_BRANCH"
-
mkdir -p public/"$CI_COMMIT_BRANCH"
# Create directory for docs if it doesn't exist
-
mkdir -p public/"$CI_COMMIT_BRANCH"/files
-
mkdir -p public/"$CI_COMMIT_BRANCH"/files
# Create directory for files if it doesn't exist
-
cp -rf doc/_build/html public/"$CI_COMMIT_BRANCH"
-
cp -rf doc/_build/html public/"$CI_COMMIT_BRANCH"
# Copy docs to shared folder
-
cp -rf dist/* public/"$CI_COMMIT_BRANCH"/files/.
-
cp -rf dist/* public/"$CI_COMMIT_BRANCH"/files/.
# Copy files to shared folder
-
'
if
[
"$BACKUP_ZIPFILE_URL"
!=
null
];
then
curl
"$BACKUP_ZIPFILE_URL"
--output
backup.zip;
unzip
-n
backup.zip;
fi'
# Download backup files
-
cd public/"$CI_COMMIT_BRANCH"/files
-
cd public/"$CI_COMMIT_BRANCH"/files
-
echo "<html><body><h1>Directory listing:</h1>" > ./index.html
-
echo "<html><body><h1>Directory listing:</h1>" > ./index.html
# Create directory listing
-
find -exec echo "<a href='{}'>{}</a><br/>" \; | sort >> ./index.html
-
find -exec echo "<a href='{}'>{}</a><br/>" \; | sort >> ./index.html
-
echo "</body></html>" >> ./index.html
-
echo "</body></html>" >> ./index.html
artifacts
:
artifacts
:
...
...
This diff is collapsed.
Click to expand it.
README.rst
+
7
−
0
View file @
9cd35a9c
...
@@ -29,6 +29,13 @@ Changelog
...
@@ -29,6 +29,13 @@ Changelog
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Version 0.1.15
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Released 2022-11-02
- Allowed adding files from previous versions using Gitlab CI/CD.
Version 0.1.14
Version 0.1.14
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
...
This diff is collapsed.
Click to expand it.
idea/__init__.py
+
1
−
1
View file @
9cd35a9c
...
@@ -4,5 +4,5 @@
...
@@ -4,5 +4,5 @@
# Copyright (c) since 2016, CESNET, z. s. p. o.
# Copyright (c) since 2016, CESNET, z. s. p. o.
# Use of this source is governed by an ISC license, see LICENSE file.
# Use of this source is governed by an ISC license, see LICENSE file.
__version__
=
'
0.1.1
4
'
__version__
=
'
0.1.1
5
'
__author__
=
'
Pavel Kácha <pavel.kacha@cesnet.cz>
'
__author__
=
'
Pavel Kácha <pavel.kacha@cesnet.cz>
'
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