All checks were successful
continuous-integration/drone/push Build is passing
An external repository is holding now the src and Dockerfile for conventi so this is no longer needed. In the same step we now use the tag from the external image to run our pipeline. Reviewed-on: #11 PR #11
83 lines
1.6 KiB
YAML
83 lines
1.6 KiB
YAML
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: main
|
|
|
|
steps:
|
|
- name: fetch tags
|
|
image: alpine/git
|
|
commands:
|
|
- git fetch --tags
|
|
- name: update version and changelog
|
|
image: registry.riba-interactive.de/conventi:0.1.0
|
|
- name: commit changelog updates
|
|
image: alpine/git
|
|
commands:
|
|
- git add .
|
|
- git commit -m "[CI SKIP] version and changelog update"
|
|
- git push origin $DRONE_TARGET_BRANCH
|
|
- name: tag commit
|
|
image: registry.riba-interactive.de/conventi:0.1.0
|
|
commands:
|
|
- export version=$(conventi.sh get_version)
|
|
- git tag -am "Tagging new version $version" "$version"
|
|
- git push origin "$version"
|
|
|
|
trigger:
|
|
branch:
|
|
- main
|
|
event:
|
|
- push
|
|
|
|
image_pull_secrets:
|
|
- dockerconfig
|
|
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: tag
|
|
|
|
steps:
|
|
- 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
|
|
|
|
image_pull_secrets:
|
|
- dockerconfig
|
|
---
|
|
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
|
|
commands:
|
|
- echo "Do some curl or so"
|
|
when:
|
|
event:
|
|
- pull_request
|
|
|
|
trigger:
|
|
branch:
|
|
- develop
|
|
- feature/*
|
|
|
|
image_pull_secrets:
|
|
- dockerconfig
|
|
... |