Skip to content
Snippets Groups Projects
Commit 9bb19648 authored by Timo Furrer's avatar Timo Furrer
Browse files

Merge branch 'configurable_arch' into 'main'

docs(configure-arch): add description about how to configure build architectures

See merge request components/opentofu!203
parents b46424ee 6b6b756d
No related branches found
No related tags found
No related merge requests found
...@@ -578,6 +578,14 @@ See also the official GitLab documentation for it ...@@ -578,6 +578,14 @@ See also the official GitLab documentation for it
If you want to save runner resources you may disable the unit and integration tests If you want to save runner resources you may disable the unit and integration tests
by setting the `SKIP_TESTS` CI/CD variable to `true`. by setting the `SKIP_TESTS` CI/CD variable to `true`.
The component builds by default a multi-arch image for `linux/amd64` and `linux/arm64`.
There are multiple reasons why you might want to change this behavior, like saving runner resources.
To configure for what architectures the container image should be built, you can go to
the CI/CD variables in the project settings and add a variable called `PLATFORMS`.
The value is one or more `OS/ARCH[/VARIANT]`. If you have multiple platforms, they have to be comma separated.
**Keep in mind that the component is tested with `linux/amd64` and `linux/arm64`,
other platforms are not officially supported!**
You can set the `OPENTOFU_COMPONENT_IMAGE_BUILD_RUNNER_TAG` CI/CD variable to a custom runner tag You can set the `OPENTOFU_COMPONENT_IMAGE_BUILD_RUNNER_TAG` CI/CD variable to a custom runner tag
to use for the image build job. This may be useful if you require a dedicated privileged runner. to use for the image build job. This may be useful if you require a dedicated privileged runner.
......
...@@ -654,6 +654,14 @@ See also the official GitLab documentation for it ...@@ -654,6 +654,14 @@ See also the official GitLab documentation for it
If you want to save runner resources you may disable the unit and integration tests If you want to save runner resources you may disable the unit and integration tests
by setting the `SKIP_TESTS` CI/CD variable to `true`. by setting the `SKIP_TESTS` CI/CD variable to `true`.
The component builds by default a multi-arch image for `linux/amd64` and `linux/arm64`.
There are multiple reasons why you might want to change this behavior, like saving runner resources.
To configure for what architectures the container image should be built, you can go to
the CI/CD variables in the project settings and add a variable called `PLATFORMS`.
The value is one or more `OS/ARCH[/VARIANT]`. If you have multiple platforms, they have to be comma separated.
**Keep in mind that the component is tested with `linux/amd64` and `linux/arm64`,
other platforms are not officially supported!**
You can set the `OPENTOFU_COMPONENT_IMAGE_BUILD_RUNNER_TAG` CI/CD variable to a custom runner tag You can set the `OPENTOFU_COMPONENT_IMAGE_BUILD_RUNNER_TAG` CI/CD variable to a custom runner tag
to use for the image build job. This may be useful if you require a dedicated privileged runner. to use for the image build job. This may be useful if you require a dedicated privileged runner.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment