Skip to content

Commit

Permalink
pipeline is updated
Browse files Browse the repository at this point in the history
  • Loading branch information
oyurekten committed Nov 18, 2023
2 parents 4149d6d + e255d23 commit bfb96ee
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ nginx.conf
/src/assets/guides/*

# Don't expose configs
/src/assets/configs/config.json
/src/assets/configs/*.config.json
/src/assets/configs/*config.json

# Only exists if Bazel was run
/bazel-out
Expand Down
24 changes: 18 additions & 6 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,35 @@
variables:
VERSION: "2.0.0"
BUILD_SCRIPTS_ROOT_PATH: "/home/gitlab-runner/ci_cd/k8s/metabolights-editor"
VERSION: "2.1.0"
BUILD_SCRIPTS_ROOT_PATH: "/home/gitlab-runner/ci_cd/k8s"
workflow:
rules:
- if: $CI_COMMIT_BRANCH == "development" || $CI_COMMIT_BRANCH == "test" || $CI_COMMIT_BRANCH == "master" || $CI_COMMIT_BRANCH == "staging"
stages:
- build
- push
- deploy

build:
checkout_configs:
stage: build
script:
- bash "$BUILD_SCRIPTS_ROOT_PATH/build.sh"
- bash "$BUILD_SCRIPTS_ROOT_PATH/checkout_configs.sh"

deploy_editor:
build_container:
stage: build
script:
- bash "$BUILD_SCRIPTS_ROOT_PATH/metabolights-editor/build_container.sh"

push_container:
stage: push
script:
- bash "$BUILD_SCRIPTS_ROOT_PATH/push_container.sh"

deploy:
stage: deploy
only:
- test
- staging
- master
script:
- bash "$BUILD_SCRIPTS_ROOT_PATH/deploy.sh"
- bash "$BUILD_SCRIPTS_ROOT_PATH/metabolights-editor/prepare_deployment_files.sh"
- bash "$BUILD_SCRIPTS_ROOT_PATH/metabolights-editor/deploy.sh"

0 comments on commit bfb96ee

Please sign in to comment.