Commit ed2bc1c1 authored by mrodzis's avatar mrodzis 🐸
Browse files

ci: add draft for cleanup

parent 95ec4a9a
Pipeline #188583 failed with stages
in 1 minute and 37 seconds
......@@ -3,16 +3,26 @@ cache:
- node_modules/
stages:
- clean
- build
- deploy
- preserve-pages
# Templates
.build: &build
- bash .ci-scripts/set_entrypoint_ci.sh
- npm install
- npm run build
- npm run tweak:build
- bash .ci-scripts/set_entrypoint_ci.sh
- npm install
- npm run build
- npm run tweak:build
.git: &git
- eval $(ssh-agent -s)
- echo "$DEPLOY_KEY" | tr -d '\r' | ssh-add - > /dev/null
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- ssh-keyscan gitlab.gwdg.de >> ~/.ssh/known_hosts
- git config --global user.email "ahiqar-backend@gitlab.gwdg.de"
- git config --global user.name "Gitlab CI"
build_test:
image: docker.gitlab.gwdg.de/subugoe/emo/qviewer/node:latest
......@@ -83,6 +93,19 @@ pushback:
paths:
- updated-artifact.zip
clean_up:
image: docker.gitlab.gwdg.de/mrodzis/docker-images/debian
stage: clean
variables:
CLEANED: "true"
script:
- *git
- mkdir -p /tmp/this && cd /tmp/this
- git clone git@gitlab.gwdg.de:subugoe/emo/QViewer.git
- cd QViewer
- ls
# when a git flow release is made, a tag will be pushed starting this job. it
# will keep the resulting artifact from the job declared in `JOB_NUMBER_TO_PRESERVE`
# and it will set up a Gitlab release at the repo. therefore the merge message starting
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment