From d961942fa5b3cd201774632cb97e10d643202ebc Mon Sep 17 00:00:00 2001 From: Peter Morgan Date: Thu, 1 Dec 2022 10:17:00 +0000 Subject: [PATCH] default to build for: linux/amd64,linux/arm64 --- README.md | 12 +++++++++++- action.yml | 2 +- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d1651e0..7bf16d0 100644 --- a/README.md +++ b/README.md @@ -23,10 +23,19 @@ This is a [composite action][github-composite-action] that: - Pushes the image to the container repository Supporting: + - [Elixir][elixir] with the [Phoenix Framework][phoenix] using [mix][mix] to build; - [Erlang/OTP][erlang] with [erlang.mk][erlang-mk]; - [Erlang/OTP][erlang] with [rebar3][rebar3] +Platforms: + +- linux/amd64 +- linux/arm64 + +Default will create a [multi-platform][docker-building-multiplatform] +image for both `amd64` and `arm64`. + Hello World! Simple examples for both Elixir and Erlang can be found at: - [Elixir with Phoenix][hello-world-elixir-phx] @@ -156,7 +165,7 @@ appropriate version of `erlang` or `elixir`. ## build-platforms The platforms that are used for the build. This defaults to -`linux/amd64`. +`linux/amd64,linux/arm64`. ## build-tags @@ -168,6 +177,7 @@ None. [baseimages-scratch]: https://docs.docker.com/engine/userguide/eng-image/baseimages/ [docker-building-multi-stage]: https://docs.docker.com/build/building/multi-stage/ +[docker-building-multiplatform]: https://docs.docker.com/build/building/multi-platform/ [docker-com]: https://www.docker.com [dockerfile-best-practices]: https://docs.docker.com/engine/userguide/eng-image/dockerfile_best-practices [elixir]: https://elixir-lang.org diff --git a/action.yml b/action.yml index 60f73ad..22d9924 100644 --- a/action.yml +++ b/action.yml @@ -19,7 +19,7 @@ inputs: default: make build-platforms: description: Build platforms - default: linux/amd64 + default: linux/amd64,linux/arm64 build-tags: description: Build tags required: true