Skip to content

ci: publish through the shared ci-components workflow - #12

Merged
gerau merged 1 commit into
BlockstreamResearch:masterfrom
DeviaVir:ci/use-ci-components
Oct 29, 2026
Merged

gerau merged 1 commit into
BlockstreamResearch:masterfrom
DeviaVir:ci/use-ci-components

Conversation

@DeviaVir

Copy link
Copy Markdown
Collaborator

Follow-up to #10. The image build + publish job moves into the shared reusable workflow Blockstream/ci-components/.github/workflows/publish.yml@v1, so it is maintained in one place for all repositories that publish this way.

The behaviour stays the same:

  • build builds deployment/Dockerfile.relay without credentials or OIDC.
  • publish (environment staging) runs no repository code. It pushes only the OCI data from build and signs the digest with keyless cosign.
  • Tags are <commit sha>-<UTC timestamp>.

This also fixes the failed publish after #10 (invalid_target / not authorized). The registry federation now accepts only this shared workflow for this repository.

The repository variables that are already set (GCP_WORKLOAD_IDENTITY_PROVIDER, GCP_SERVICE_ACCOUNT, IMAGE_NAME) stay as they are; the workflow now passes them to the shared workflow as inputs. The build job runs in a staging-build environment, which GitHub creates on the first run. It needs no settings.

After merge, the publish run on master should produce the first image.

The build/publish/sign jobs now live in one place for every repository
that publishes this way. Same behaviour: build without credentials,
publish without repository code, keyless cosign, <sha>-<UTC> tags.
The repository passes its own workload identity provider, publisher SA
and image from repository variables.
@gerau
gerau self-requested a review October 29, 2026 14:56

@gerau gerau left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK b2f4b1f; code review

@gerau
gerau merged commit 1a7d438 into BlockstreamResearch:master Oct 29, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants