BlueGit

timfa containerpipes

Files

containerpipes / blue-ci-cd.yml

blue-ci-cd.yml

blue-ci-cd.yml 1.2 KiB Download Raw
1# BlueGit CI (vertaald uit .gitlab-ci.yml; GitLab is alleen nog backup).
2#
3# Op GitLab startte een nieuwe tag de release (validate, bump-commit terug naar
4# master met CI_PUSH_TOKEN, build, GitLab-release, token roteren). Op BlueGit
5# maakt de release-API de tag zelf, dus:
6# master-push: build (versie = hoogste tag + 1 patch, of RELEASE_VERSION).
7# release: HANDMATIG, maakt tag + release met de jar. Nooit automatisch,
8# nooit dubbel. Geen bump-commit; CI_PUSH_TOKEN is niet meer nodig.
9# Tag-pushes starten geen pipeline. Scripts draaien expliciet met bash.
10
11workflow:
12 rules:
13 - if: $CI_COMMIT_TAG != ""
14 when: never
15 - if: $CI_COMMIT_BRANCH == "master"
16 - if: $CI_PIPELINE_SOURCE == "web"
17 - if: $CI_PIPELINE_SOURCE == "api"
18
19variables:
20 GRADLE_OPTS: "-Dorg.gradle.daemon=false"
21
22stages: [build, release]
23
24build:jar:
25 stage: build
26 image: gradle:jdk25
27 script:
28 - bash scripts/ci/build.sh
29 artifacts:
30 paths: [build/out/ContainerPipes.jar, build/version.txt]
31 expire_in: 30d
32
33release:
34 stage: release
35 image: bluegit/base
36 needs: [build:jar]
37 resource_group: release
38 rules:
39 - if: $CI_COMMIT_BRANCH == "master"
40 when: manual
41 script:
42 - bash scripts/ci/bluegit-release.sh