Skip to content

Commit

Permalink
8.5 release
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-scheck committed Jun 27, 2024
1 parent a1c7d7d commit aba12dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ LABEL maintainer="Robert Scheck <https://github.com/openbgpd-portable/openbgpd-c
org.label-schema.usage="https://man.openbsd.org/bgpd" \
org.label-schema.vcs-url="https://github.com/openbgpd-portable"

ARG VERSION=8.4
ARG VERSION=8.5
ARG PORTABLE_GIT
ARG PORTABLE_COMMIT
ARG OPENBSD_GIT
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ While none of the volumes is required, meaningful usage requires at least a prop

For custom OCI images, the following build arguments can be passed:

* `VERSION` - Version of the signed portability shim release tarball, defaults to `8.4`.
* `VERSION` - Version of the signed portability shim release tarball, defaults to `8.5`.
* `PORTABLE_GIT` - Git repository URL of the portability shim, defaults to `https://github.com/openbgpd-portable/openbgpd-portable.git`.
* `PORTABLE_COMMIT` - Git commit, branch or tag of the portability shim, e.g. `master`, unset by default.
* `OPENBSD_GIT` - Git repository URL of the OpenBSD source code, defaults to `https://github.com/openbgpd-portable/openbgpd-openbsd.git`.
Expand All @@ -67,7 +67,7 @@ To build a custom OCI image from current Git, e.g. `--build-arg PORTABLE_COMMIT=

Thus the OCI images are effectively built within the GitHub infrastructure (using [free minutes](https://docs.github.com/en/github/setting-up-and-managing-billing-and-payments-on-github/about-billing-for-github-actions) for public repositories) and then only pushed to both container repositories, Docker Hub and Quay (which are also free for public repositories). This not only saves repeated CPU resources but also ensures identical bugs independent from which container repository the OCI image gets finally pulled (and somehow tries to keep it distant from program changes such as [Docker Hub Rate Limiting](https://www.docker.com/increase-rate-limits) in 2020). The authentication for the pushes to the container repositories happen using access tokens, which at Docker Hub need to be bound to a (community) user and at Quay using a robot account as part of the organization. These access tokens are saved as "repository secrets" as part of the settings of the GitHub project.

For each release of the project, a new Git branch (named like the version of the release, e.g. `8.4`) is created (based on the default branch, e.g. `master`). The workflow takes care about creating and moving container tags, such as `latest`. By not using Git tags but branches, downstream bug fixes can be easily applied to the OCI image (e.g. for bugs in the `Dockerfile` or patches for the source code itself). Old branches are not touched anymore, equivalent to old release archives.
For each release of the project, a new Git branch (named like the version of the release, e.g. `8.5`) is created (based on the default branch, e.g. `master`). The workflow takes care about creating and moving container tags, such as `latest`. By not using Git tags but branches, downstream bug fixes can be easily applied to the OCI image (e.g. for bugs in the `Dockerfile` or patches for the source code itself). Old branches are not touched anymore, equivalent to old release archives.

Each commit to a Git branch triggers the workflow and leads to OCI images being pushed (except for GitHub pull requests), where the container tag is always based on the Git branch name. OCI images with non-release container tags pushed for testing purposes need to be cleaned up manually at the container repositories. Additionally, a cron-like option in the workflow leads to a nightly build being also tagged as `edge`.

Expand Down

0 comments on commit aba12dd

Please sign in to comment.