Commit 45ad0096 authored by mrodzis's avatar mrodzis 🐸
Browse files

ci: move template to script

parent 40b251be
Pipeline #189138 passed with stages
in 5 minutes and 59 seconds
#!/bin/bash
# This script has originally been a template at .gitlab-ci.yml.
# In order to use it within a Bash conditional we moved it to this script file.
bash .ci-scripts/set_entrypoint_ci.sh
npm install
npm run build
npm run tweak:build
\ No newline at end of file
......@@ -9,12 +9,6 @@ stages:
- preserve-pages
# Templates
.build: &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
......@@ -28,6 +22,7 @@ clean_up:
image: docker.gitlab.gwdg.de/mrodzis/docker-images/debian
stage: clean
only:
- main
- develop
script:
- *git
......@@ -43,7 +38,7 @@ build_test:
- develop
stage: build
script:
- *build
- bash .ci-scripts/build.sh
artifacts:
paths:
- dist/
......@@ -55,7 +50,7 @@ build_main_and_develop:
- develop
stage: build
script:
- *build
- if [[ $CONTINUE_BUILD == "true" ]]; then bash .ci-scripts/build.sh; fi
artifacts:
paths:
- dist/
......
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