https://github.com/springernature/halfpipe-update
docker image for auto updating pipelines
https://github.com/springernature/halfpipe-update
ee-release-engineering engineering-enablement
Last synced: 3 months ago
JSON representation
docker image for auto updating pipelines
- Host: GitHub
- URL: https://github.com/springernature/halfpipe-update
- Owner: springernature
- Created: 2018-06-20T13:25:11.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-09-06T12:52:42.000Z (over 1 year ago)
- Last Synced: 2025-01-10T14:40:27.946Z (5 months ago)
- Topics: ee-release-engineering, engineering-enablement
- Language: Shell
- Homepage:
- Size: 5.93 MB
- Stars: 0
- Watchers: 127
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Halfpipe Update
[](https://concourse.halfpipe.io/teams/engineering-enablement/pipelines/halfpipe-update-docker)
This repo builds a docker image which is designed to be used in CI to keep the configuration in sync with the halfpipe manifest.
There are scripts for Concourse (`update-pipeline`) and GitHub Actions (`update-actions-workflow`).
See for more info on using it.
## Concourse
1. Update fly.2. Update halfpipe.
3. Login to concourse.
4. Check team in halfpipe file matches current team
5. Check if pipeline already exists. Obviously it should as it is running inside the pipeline - something is wrong otherwise, so exit (error).
6. Run `halfpipe` to generate Concourse pipeline
7. Check if pipeline has changed. Exit (success) if there are no changes.
If the pipeline has changed:
8. Check if any new jobs have been added. If so, disable all existing versions. This prevents the new jobs triggering immediately with the previous version.
9. Update the pipeline.
## GitHub Actions
1. Update halfpipe2. Run `halfpipe` to generate workflow
3. Set GitHub Actions output variable `synced=true|false`. Halfpipe then uses this variable to either commit the changes or continue running the workflow.