Skip to content

Use openzim/overview's reusable docker-publish workflow - #49

Open
benoit74 wants to merge 1 commit into
mainfrom
migrate-to-reusable-docker-publish
Open

benoit74 wants to merge 1 commit into
mainfrom
migrate-to-reusable-docker-publish

Conversation

@benoit74

Copy link
Copy Markdown

openzim/docker-publish-action is deprecated
(openzim/docker-publish-action#10). Image building and publishing now goes through the reusable workflow in
openzim/overview,
which builds each architecture on its own native runner and merges the digests into a single multi-arch
manifest.

What the rewrite does, per the migration guide:

  • the publishing step becomes a job calling the reusable workflow (a uses: job cannot hold steps, so
    anything else the job did stays in its own job, wired with needs: to keep the original ordering)
  • restrict-to becomes an if: github.repository == ... guard on the job
  • credentials becomes the ghcr_username / ghcr_token secrets
  • on-master is renamed on-main (same meaning: the repository's default branch)
  • registries, repo_description and repo_overview are dropped: they only ever mattered for docker.io,
    which this repository does not publish to

The reusable workflow lives in openzim/overview and is pinned to its v1 tag.

Image names, tags, platforms, context, Dockerfile and build args are unchanged.

[openzim/docker-publish-action](https://github.com/openzim/docker-publish-action) is deprecated
(openzim/docker-publish-action#10). Image building and publishing now goes through the reusable workflow in
[openzim/overview](https://github.com/openzim/overview/blob/main/.github/workflows/docker-publish.yaml),
which builds each architecture on its own native runner and merges the digests into a single multi-arch
manifest.

What the rewrite does, per [the migration guide](https://github.com/openzim/overview/wiki/Publishing-Docker-images#migrating-from-docker-publish-action):

- the publishing step becomes a job calling the reusable workflow (a `uses:` job cannot hold `steps`, so
  anything else the job did stays in its own job, wired with `needs:` to keep the original ordering)
- `restrict-to` becomes an `if: github.repository == ...` guard on the job
- `credentials` becomes the `ghcr_username` / `ghcr_token` secrets
- `on-master` is renamed `on-main` (same meaning: the repository's default branch)
- `registries`, `repo_description` and `repo_overview` are dropped: they only ever mattered for docker.io,
  which this repository does not publish to

The reusable workflow lives in openzim/overview and is pinned to its `v1` tag.

Image names, tags, platforms, context, Dockerfile and build args are unchanged.
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.

1 participant