Skip to content
Snippets Groups Projects
Commit c7ff2a7f authored by Paul Pestov's avatar Paul Pestov
Browse files

feat: wip

parent 1a3a7e1e
No related branches found
No related tags found
No related merge requests found
Pipeline #291795 passed
......@@ -7,21 +7,22 @@ dist_dir=$(grep distDir quasar.conf.js | cut -d "'" -f2)
project_id=10921
mkdir public
# Create develop artifact
curl --output old-artifact-develop.zip --header "PRIVATE-TOKEN: $API_TOKEN" "https://gitlab.gwdg.de/api/v4/projects/${project_id}/jobs/artifacts/develop/download?job=pages"
unzip -u old-artifact-develop.zip -d artifact-develop
mkdir -p public/develop
cp --recursive artifact-develop/public/develop/* public/develop/
cp --recursive .gitlab/pages/config-tester/* public/develop/config-tester/
# Create branch artifact
mkdir -p public/${CI_COMMIT_REF_SLUG}/config-tester
cp --recursive --remove-destination ${dist_dir}/* public/${CI_COMMIT_REF_SLUG}/
cp --recursive .gitlab/pages/config-tester/* public/${CI_COMMIT_REF_SLUG}/config-tester/
# Create main artifact
curl --output old-artifact-main.zip --header "PRIVATE-TOKEN: $API_TOKEN" "https://gitlab.gwdg.de/api/v4/projects/${project_id}/jobs/artifacts/main/download?job=pages"
unzip -u old-artifact-main.zip -d artifact-main
mkdir -p public/main
mkdir -p public/main/config-tester
cp --recursive artifact-main/public/main/* public/main/
cp --recursive .gitlab/pages/config-tester/* public/main/config-tester/
# Create branch artifact
mkdir -p public/${CI_COMMIT_REF_SLUG}/config-tester
cp --recursive --remove-destination ${dist_dir}/* public/${CI_COMMIT_REF_SLUG}/
cp --recursive .gitlab/pages/config-tester/* public/${CI_COMMIT_REF_SLUG}/config-tester/
# Create develop artifact
curl --output old-artifact-develop.zip --header "PRIVATE-TOKEN: $API_TOKEN" "https://gitlab.gwdg.de/api/v4/projects/${project_id}/jobs/artifacts/develop/download?job=pages"
unzip -u old-artifact-develop.zip -d artifact-develop
mkdir -p public/develop/config-tester
cp --recursive artifact-develop/public/develop/* public/develop/
cp --recursive .gitlab/pages/config-tester/* public/develop/config-tester/
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment