Skip to content
Snippets Groups Projects
Commit 71479c1e authored by Michelle Weidling's avatar Michelle Weidling :blowfish:
Browse files

ci: move CI scripts to separate dir

parent aaf46925
No related branches found
No related tags found
1 merge request!18Feature/#45 ci add docs
Pipeline #202598 passed
File moved
File moved
File moved
...@@ -3,8 +3,9 @@ ...@@ -3,8 +3,9 @@
# keep this file slim and clear. please have a look at these scripts for # keep this file slim and clear. please have a look at these scripts for
# information that goes beyond the documentation of the single stages. # information that goes beyond the documentation of the single stages.
# #
# this config uses custom Docker images to keep the pipelines fast. # this config uses a custom Docker image to keep the pipelines fast.
# see https://gitlab.gwdg.de/mrodzis/docker-images for more info about them. # see https://gitlab.gwdg.de/mrodzis/docker-images/-/tree/main/alpine for more
# info about it.
cache: cache:
paths: paths:
...@@ -20,7 +21,7 @@ build_page: ...@@ -20,7 +21,7 @@ build_page:
image: node:lts-alpine3.10 image: node:lts-alpine3.10
stage: build stage: build
script: script:
- ash set-path-base.sh ${CI_COMMIT_REF_SLUG} - ash .ci-scripts/set-path-base.sh ${CI_COMMIT_REF_SLUG}
- npm i - npm i
- node_modules/.bin/vuepress build src - node_modules/.bin/vuepress build src
artifacts: artifacts:
...@@ -35,8 +36,8 @@ pages: ...@@ -35,8 +36,8 @@ pages:
- job: build_page - job: build_page
artifacts: true artifacts: true
script: script:
- ash update-artifacts.sh - ash .ci-scripts/update-artifacts.sh
- ash remove-old-artifacts.sh - ash .ci-scripts/remove-old-artifacts.sh
environment: environment:
name: ${CI_COMMIT_REF_SLUG} name: ${CI_COMMIT_REF_SLUG}
url: https://subugoe.pages.gwdg.de/ahiqar/website/${CI_COMMIT_REF_SLUG}/ url: https://subugoe.pages.gwdg.de/ahiqar/website/${CI_COMMIT_REF_SLUG}/
...@@ -74,4 +75,4 @@ remove_envs: ...@@ -74,4 +75,4 @@ remove_envs:
- if: '$CI_COMMIT_BRANCH == "main"' - if: '$CI_COMMIT_BRANCH == "main"'
- if: '$CI_COMMIT_MESSAGE =~ "Merge"' - if: '$CI_COMMIT_MESSAGE =~ "Merge"'
script: script:
- ash delete-inactive-environments.sh - ash .ci-scripts/delete-inactive-environments.sh
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