Skip to content
Snippets Groups Projects
Commit 3d6ce31e authored by romanvalov's avatar romanvalov
Browse files

dynamic pipeline

parent 29d2fb6d
Branches
Tags
1 merge request!2always run pipeline
Pipeline #10945 passed
......@@ -2,10 +2,12 @@ build:
stage: build
script:
- echo "CI_COOK_BRANCH_SLUG=cook-${CI_COMMIT_REF_NAME}" >> ./.env
- echo "CI_RUN_CHECK=true" >> ./.env
artifacts:
reports:
dotenv: .env
test:
stage: test
script:
......@@ -20,3 +22,21 @@ test:
policy: push
paths:
- ./env.txt
check:
stage: test
script:
- env
rules:
- if: $CI_RUN_CHECK == "true"
final:
stage: deploy
script:
- env
needs:
- job: check
optional: true
- job: build
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment