diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a64c5878..7e3b7a47 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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"