Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
Website
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Operate
Environments
Terraform modules
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
subugoe
ahiqar
Website
Commits
be4be0b4
Commit
be4be0b4
authored
3 years ago
by
Mathias Goebel
Browse files
Options
Downloads
Patches
Plain Diff
fix: dependency from missing job (main)
parent
db624e6f
No related branches found
No related tags found
1 merge request
!30
feat: add env variables for URLs
Pipeline
#214579
failed
3 years ago
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+17
-22
17 additions, 22 deletions
.gitlab-ci.yml
with
17 additions
and
22 deletions
.gitlab-ci.yml
+
17
−
22
View file @
be4be0b4
...
...
@@ -14,6 +14,12 @@
dependencies
:
-
install
script
:
# overwrite vars when build from main branch. to omit a second
# job (see dependency in pages stage).
-
if [[ $CI_COMMIT_REF_SLUG == "main" ]]; then
-
VUE_APP_BASE_URL_VIEWER=$API_MAIN
-
VUE_APP_BASE_URL_VIEWER="/ahiqar/website/"
-
fi
-
npm run build
-
mkdir --parents public/${CI_COMMIT_REF_SLUG}
-
cp --recursive src/.vuepress/dist/* public/${CI_COMMIT_REF_SLUG}/
...
...
@@ -33,6 +39,9 @@ variables:
GIT_CLONE_PATH
:
$CI_BUILDS_DIR/$CI_PROJECT_PATH/$CI_JOB_NAME
# ↓ reduces the amount of data transfered to the runner (shallow clone)
GIT_DEPTH
:
2
API_DEV
:
'
https://ahikar-dev.sub.uni-goettingen.de'
API_MAIN
:
'
https://ahikar.sub.uni-goettingen.de'
BASE_BACKEND
:
'
/website'
stages
:
...
...
@@ -54,12 +63,9 @@ install:
-
node_modules/
build_page-develop
:
except
:
-
main
-
tags
build_page-all
:
variables
:
VUE_APP_BASE_URL_API
:
"
https://ahikar-dev.sub.uni-goettingen.de"
VUE_APP_BASE_URL_API
:
$API_DEV
VUE_APP_BASE_URL_VIEWER
:
'
/ahiqar/website/$CI_COMMIT_REF_SLUG'
<<
:
*build-defaults
...
...
@@ -67,24 +73,16 @@ build_page-develop-backend:
only
:
-
develop
variables
:
VUE_APP_BASE_URL_API
:
"
https://ahikar-dev.sub.uni-goettingen.de"
VUE_APP_BASE_URL_VIEWER
:
'
/website'
<<
:
*build-defaults
build_page-main
:
only
:
-
main
variables
:
VUE_APP_BASE_URL_API
:
"
https://ahikar.sub.uni-goettingen.de"
VUE_APP_BASE_URL_VIEWER
:
'
/ahiqar/website'
VUE_APP_BASE_URL_API
:
$API_DEV
VUE_APP_BASE_URL_VIEWER
:
$BASE_BACKEND
<<
:
*build-defaults
build_page-main-backend
:
only
:
-
main
variables
:
VUE_APP_BASE_URL_API
:
"
https://ahikar.sub.uni-goettingen.de"
VUE_APP_BASE_URL_VIEWER
:
'
/website'
VUE_APP_BASE_URL_API
:
$API_MAIN
VUE_APP_BASE_URL_VIEWER
:
$BASE_BACKEND
<<
:
*build-defaults
...
...
@@ -92,11 +90,8 @@ build_page-main-backend:
pages
:
image
:
docker.gitlab.gwdg.de/mrodzis/docker-images/alpine
stage
:
pages
needs
:
-
job
:
build_page-main
artifacts
:
true
-
job
:
build_page-develop
artifacts
:
true
dependencies
:
-
build_page-all
script
:
-
ash .ci-scripts/update-artifacts.sh
-
ash .ci-scripts/remove-old-artifacts.sh
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment