Skip to content

Commit

Permalink
fix(cicd pipeline)
Browse files Browse the repository at this point in the history
  • Loading branch information
oyurekten committed Nov 18, 2023
1 parent bfb96ee commit 74d7d15
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,34 @@
variables:
VERSION: "2.1.0"
BUILD_SCRIPTS_ROOT_PATH: "/home/gitlab-runner/ci_cd/k8s"
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"
- if: $CI_COMMIT_BRANCH == "development" || $CI_COMMIT_BRANCH == "test" || $CI_COMMIT_BRANCH == "master" || $CI_COMMIT_BRANCH == "staging"
stages:
- build
- push
- deploy
- build
- push
- deploy

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

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

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

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

0 comments on commit 74d7d15

Please sign in to comment.