-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(release): create Docker hub binaries when tagging (#5138)
* feat(release): create Docker hub binaries when tagging * fix(release): add a release workflow for binaries * fix(release): trigger on tag creation, not pushing to it * fix(release): use the same conditions for logging into DockerHub * fix(release): add missing parameter to access GH secrets * Apply suggestions from code review Co-authored-by: teor <teor@riseup.net> * ci(release): just publish to DockerHub when a release is published * Apply suggestions from code review Co-authored-by: teor <teor@riseup.net> * ci(release): filter prerelease event correctly * ci(release): fix tags * ci(release): use `zebra` and not `zebrad` as the repository * ci(release): do not try to login to Docker if not a release * Update .github/workflows/build-docker-image.yml Co-authored-by: teor <teor@riseup.net> Co-authored-by: teor <teor@riseup.net>
- Loading branch information
1 parent
36a549e
commit 7b6da4b
Showing
2 changed files
with
48 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# This workflow is meant to trigger a build of Docker binaries when a release | ||
# is published, it uses the existing `build-docker-image.yml` workflow | ||
# | ||
# We use a separate action as we might want to trigger this under | ||
# different circumstances than a Continuous Deployment, for example. | ||
# | ||
# This workflow is triggered if: | ||
# - A release is published | ||
# - A pre-release is changed to a release | ||
name: Release binaries | ||
|
||
on: | ||
release: | ||
types: | ||
- released | ||
|
||
jobs: | ||
# Each time this workflow is executed, a build will be triggered to create a new image | ||
# with the corresponding tags using information from git | ||
# | ||
# The image will be named `zebrad:<semver>` | ||
build: | ||
uses: ./.github/workflows/build-docker-image.yml | ||
with: | ||
dockerfile_path: ./docker/Dockerfile | ||
dockerfile_target: runtime | ||
image_name: zebrad | ||
network: Mainnet | ||
checkpoint_sync: true | ||
rust_backtrace: '1' | ||
zebra_skip_ipv6_tests: '1' | ||
rust_log: info | ||
# This step needs access to Docker Hub secrets to run successfully | ||
secrets: inherit |