-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: limit the platforms that are build
Document the GitHub Environment variable `BUILD_PLATFORMS` that is now used in the jobs that test building container-images. Signed-off-by: Niels de Vos <ndevos@redhat.com>
- Loading branch information
Showing
3 changed files
with
37 additions
and
4 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
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,27 @@ | ||
# Continuous Integration | ||
|
||
## GitHub Workflows | ||
|
||
The GitHub Workflows under [`.github/workflows/][workflows] contain jobs that | ||
are started when Pull-Requests are created or updated. Some of the jobs can | ||
build container-images for multiple architectures. Not everyone or all | ||
environmens wants to run the build tests for all platforms. The workflows can | ||
be configured to select platforms that the `docker/setup-buildx-action` | ||
supports. | ||
|
||
For this configuration, a new Environment should be created in the GitHub | ||
Settings of the repository. The Environment is expected to be called `ci`, and | ||
a single Secret ('normal' environment variables seem not possible) should be | ||
added: | ||
|
||
- `BUILD_PLATFORMS`: `linux/amd64,linux/arm64,linux/arm/v7` | ||
|
||
Detailed steps on creating the GitHub Environment and adding a Secret can be | ||
found in [the GitHub Documentation][gh_env_doc]. | ||
|
||
In case the `BUILD_PLATFORMS` environment variable is not set, the | ||
`docker/setup-buildx-action` action defaults to the single architecture where | ||
the workflow is run (usually `linux/amd64`). | ||
|
||
[workflows]: .github/workflows/ | ||
[gh_env_doc]: https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment#environment-secrets |