Commit 9d49446b authored by mrodzis's avatar mrodzis 🐸
Browse files

ci: add set up for removing entry points

parent 1def71dc
Pipeline #188594 canceled with stages
in 3 minutes and 4 seconds
#!/bin/bash
FILE="src/index.template.html"
if grep -q '"entrypoint": ""' "$FILE"; then
echo "No entry point update required."
else
echo "Entry point has to be removed."
mkdir -p /tmp/this && cd /tmp/this || exit
git clone git@gitlab.gwdg.de:subugoe/emo/QViewer.git
cd QViewer || exit
sed -i 's/"entrypoint": ".*"/"entrypoint": ""/' src/index.template.html
git add src/index.template.html && git commit -m "ci: remove entry point" && git push
fi
\ No newline at end of file
......@@ -24,6 +24,13 @@ stages:
- git config --global user.email "tido@gitlab.gwdg.de"
- git config --global user.name "Gitlab CI"
clean_up:
image: docker.gitlab.gwdg.de/mrodzis/docker-images/debian
stage: clean
script:
- *git
- bash .ci-scripts/remove_entrypoint.sh
build_test:
image: docker.gitlab.gwdg.de/subugoe/emo/qviewer/node:latest
except:
......@@ -93,19 +100,6 @@ 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
- 'sed -i "s#\"entrypoint\": \".*\"#\"entrypoint\": \"\"#" src/index.template.html'
- cat src/index.template.html
# 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`
......
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