ci(pipeline): add version and changelog update to pipeline
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
183ddb8f3c
commit
4dc7ec53e3
59
.drone.yml
59
.drone.yml
@ -4,26 +4,73 @@ type: docker
|
|||||||
name: main
|
name: main
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Tag commit
|
- name: fetch tags
|
||||||
image: alpine
|
image: alpine/git
|
||||||
commands:
|
commands:
|
||||||
- echo This would create a tag
|
- git fetch --tags
|
||||||
|
- name: update version and changelog
|
||||||
|
image: registry.riba-interactive.de/conventi:1
|
||||||
|
- name: commit changelog updates
|
||||||
|
image: alpine/git
|
||||||
|
commands:
|
||||||
|
- git add .
|
||||||
|
- git commit -m "[CI SKIP] version and changelog update"
|
||||||
|
- name: tag commit
|
||||||
|
image: registry.riba-interactive.de/conventi:1
|
||||||
|
commands:
|
||||||
|
- export version=$(conventi.sh get_version)
|
||||||
|
- git tag -am "Tagging new version $version" "$version"
|
||||||
|
- git push origin "$version"
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
- main
|
- main
|
||||||
|
event:
|
||||||
|
- push
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: develop
|
name: tag
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Tag commit
|
- name: Build release
|
||||||
|
image: registry.riba-interactive.de/alpine-build:1
|
||||||
|
commands:
|
||||||
|
- cmake -S. -Bcmake-build-ci -DCMAKE_BUILD_TYPE=Release
|
||||||
|
- cd cmake-build-ci
|
||||||
|
- cmake --build .
|
||||||
|
- echo "Done"
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
event:
|
||||||
|
- tag
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: Build and Test
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Build and run tests
|
||||||
|
image: registry.riba-interactive.de/alpine-build:1
|
||||||
|
commands:
|
||||||
|
- cmake -S. -Bcmake-build-ci -DCMAKE_BUILD_TYPE=Debug -DENABLE_TEST_COVERAGE=on
|
||||||
|
- cd cmake-build-ci
|
||||||
|
- cmake --build .
|
||||||
|
- ctest -T Test -T Coverage
|
||||||
|
|
||||||
|
- name: Report test and coverage
|
||||||
image: alpine
|
image: alpine
|
||||||
commands:
|
commands:
|
||||||
- echo This would build the app and run test
|
- echo "Do some curl or so"
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
- pull_request
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
- develop
|
- develop
|
||||||
|
- feature/*
|
||||||
|
|
||||||
|
image_pull_secrets:
|
||||||
|
- dockerconfig
|
||||||
...
|
...
|
||||||
Loading…
Reference in New Issue
Block a user