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

ci: move template to script

parent 40b251be
No related branches found
No related tags found
1 merge request!135Feature/#203 ci remove entry point at merge
Pipeline #189138 passed
#!/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/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment