Skip to content

Commit 67b426e

Browse files
committed
BLO-4373 Multi-arch images are the new default (overwriteable)
1 parent bc88bec commit 67b426e

2 files changed

Lines changed: 14 additions & 5 deletions

File tree

README.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
# 🚀 GitHub Action for GitOps
22

3-
This GitHub Action can be used for our GitOps workflow. The GitHub Action will build and push the Docker image for your service and deploys
3+
This GitHub Action can be used for our GitOps workflow. The GitHub Action will build and push the Docker image for your
4+
service and deploys
45
the new version at your Kubernetes clusters.
56

67
## Requirement
78

8-
When you want to use this GitHub Action your GitHub repository should have a `dev` and `master` / `main` branch and it should use tags for
9+
When you want to use this GitHub Action your GitHub repository should have a `dev` and `master` / `main` branch and it
10+
should use tags for
911
releases.
1012

1113
- For the `dev` branch we will change the files specified under `gitops-dev`.
@@ -119,6 +121,7 @@ jobs:
119121
| `docker-build-secrets` | List of secrets to expose to the build (e.g., key=string, GIT_AUTH_TOKEN=mytoken) | |
120122
| `docker-build-secret-files` | List of secret files to expose to the build (e.g., key=filename, MY_SECRET=./secret.txt) | |
121123
| `docker-build-target` | Sets the target stage to build like: "runtime" | |
124+
| `docker-build-platforms` | Sets the target platforms for build | linux/amd64,linux/arm64 |
122125
| `docker-build-provenance` | Generate [provenance](https://docs.docker.com/build/attestations/slsa-provenance/) attestation for the build | `false` |
123126
| `docker-disable-retagging` | Disables retagging of existing images and run a new build instead | `false` |
124127
| `gitops-organization` | GitHub Organization for GitOps | `Staffbase` |
@@ -140,7 +143,8 @@ jobs:
140143

141144
## Contributing
142145

143-
Please read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.
146+
Please read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull
147+
requests to us.
144148

145149
## License
146150

@@ -161,4 +165,5 @@ This project is licensed under the Apache-2.0 License - see the [LICENSE.md](LIC
161165

162166
## Releasing new versions
163167

164-
Go to the release overview page and publish the draft release with a new version number. Make sure to update the floating version commit.
168+
Go to the release overview page and publish the draft release with a new version number. Make sure to update the
169+
floating version commit.

action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ inputs:
3939
docker-build-target:
4040
description: "Sets the target stage to build"
4141
required: false
42+
docker-build-platforms:
43+
description: "Sets the target platforms for build"
44+
required: false
45+
default: 'linux/amd64,linux/arm64'
4246
docker-build-provenance:
4347
description: "Generate provenance attestation for the build"
4448
required: false
@@ -177,7 +181,7 @@ runs:
177181
tags: ${{ steps.preparation.outputs.tag_list }}
178182
secrets: ${{ inputs.docker-build-secrets }}
179183
secret-files: ${{ inputs.docker-build-secret-files }}
180-
platforms: linux/amd64
184+
platforms: ${{ inputs.docker-build-platforms }}
181185
cache-from: type=gha
182186
cache-to: type=gha,mode=max
183187
provenance: ${{ inputs.docker-build-provenance }}

0 commit comments

Comments
 (0)