Commit 91bc8b6b authored by Manuel Kieweg's avatar Manuel Kieweg 🤷
Browse files

split deploy jobs

parent c6daa68c
build-k8s-bot:
build:k8s-bot:
stage: build
image: golang:1.16
rules:
......@@ -19,23 +19,35 @@ build-k8s-bot:
K8S_OP: "create"
script:
- ./build/cd/k8s-bot
needs:
- job: "build-k8s-bot"
artifacts: true
deploy:integration-test:
<<: *deploy
stage: apply
needs:
- job: "build:merge-request"
- job: "build-k8s-bot"
artifacts: true
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
deploy:develop:
<<: *deploy
stage: deploy
needs:
- job: "build:develop"
- job: "build-k8s-bot"
artifacts: true
rules:
- if: $CI_COMMIT_BRANCH == "develop"
deploy:latest:
<<: *deploy
stage: deploy
needs:
- job: "build:latest"
- job: "build-k8s-bot"
artifacts: true
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
k8s:destroy:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment