2022-09-15 21:14:06 -07:00
|
|
|
# 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
|
2023-03-24 00:10:40 -07:00
|
|
|
|
2023-05-29 16:58:57 -07:00
|
|
|
# The image will be named `zebra:<semver>`
|
2022-09-15 21:14:06 -07:00
|
|
|
build:
|
2022-11-06 17:59:32 -08:00
|
|
|
name: Build Release Docker
|
2022-09-15 21:14:06 -07:00
|
|
|
uses: ./.github/workflows/build-docker-image.yml
|
|
|
|
with:
|
|
|
|
dockerfile_path: ./docker/Dockerfile
|
|
|
|
dockerfile_target: runtime
|
2023-05-29 16:58:57 -07:00
|
|
|
image_name: zebra
|
2022-09-15 21:14:06 -07:00
|
|
|
rust_log: info
|
|
|
|
# This step needs access to Docker Hub secrets to run successfully
|
|
|
|
secrets: inherit
|
2023-03-24 00:10:40 -07:00
|
|
|
|
2023-05-29 16:58:57 -07:00
|
|
|
# The image will be named `zebra:<semver>.experimental`
|
2023-03-24 00:10:40 -07:00
|
|
|
build-mining-testnet:
|
|
|
|
name: Build Release Testnet Mining Docker
|
|
|
|
uses: ./.github/workflows/build-docker-image.yml
|
|
|
|
with:
|
|
|
|
dockerfile_path: ./docker/Dockerfile
|
|
|
|
dockerfile_target: runtime
|
2023-05-29 16:58:57 -07:00
|
|
|
image_name: zebra
|
2023-03-24 00:10:40 -07:00
|
|
|
tag_suffix: .experimental
|
2023-06-25 22:44:19 -07:00
|
|
|
features: "default-release-binaries getblocktemplate-rpcs"
|
2023-03-24 00:10:40 -07:00
|
|
|
rust_log: info
|
|
|
|
# This step needs access to Docker Hub secrets to run successfully
|
|
|
|
secrets: inherit
|