From cb0c41e00a626e3b73fe7ef866e6fbcea39bc4af Mon Sep 17 00:00:00 2001 From: "Alex Ellis (OpenFaaS Ltd)" Date: Wed, 25 Sep 2024 07:52:19 +0100 Subject: [PATCH] Remove armv7 from build and examples The armv7 target has been deprecated by OpenFaaS. You are still able to use older builds, but arm64 should be used instead going forward. Signed-off-by: Alex Ellis (OpenFaaS Ltd) --- .github/workflows/build.yaml | 2 +- .github/workflows/publish.yaml | 4 ++-- commands/publish.go | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 508caad2..b4fb4935 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -48,7 +48,7 @@ jobs: file: ./Dockerfile push: false load: false - platforms: linux/amd64,linux/arm/v7,linux/arm64 + platforms: linux/amd64,linux/arm64 target: release build-args: | VERSION=latest-dev diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 1dbd3f7a..9e212c76 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -50,7 +50,7 @@ jobs: with: context: . file: ./Dockerfile - platforms: linux/amd64,linux/arm/v7,linux/arm64 + platforms: linux/amd64,linux/arm64 target: release build-args: | VERSION=${{ env.TAG }} @@ -67,7 +67,7 @@ jobs: with: context: . file: ./Dockerfile - platforms: linux/amd64,linux/arm/v7,linux/arm64 + platforms: linux/amd64,linux/arm64 target: root build-args: | VERSION=${{ env.TAG }} diff --git a/commands/publish.go b/commands/publish.go index 7621f574..fd08f746 100644 --- a/commands/publish.go +++ b/commands/publish.go @@ -75,7 +75,7 @@ var publishCmd = &cobra.Command{ [--build-option VALUE] [--copy-extra PATH] [--tag ] - [--platforms linux/arm/v7] + [--platforms linux/amd64,linux/arm64] [--reset-qemu] [--remote-builder http://127.0.0.1:8081/build]`, Short: "Builds and pushes multi-arch OpenFaaS container images", @@ -90,8 +90,8 @@ Docker and buildx. You must use a multi-arch template to use this command with correctly configured TARGETPLATFORM and BUILDPLATFORM arguments. See also: faas-cli build`, - Example: ` faas-cli publish --platforms linux/amd64,linux/arm64,linux/arm/7 - faas-cli publish --platforms linux/arm/7 --filter webhook + Example: ` faas-cli publish --platforms linux/amd64,linux/arm64 + faas-cli publish --platforms linux/arm64 --filter webhook-arm faas-cli publish -f go.yml --no-cache --build-arg NPM_VERSION=0.2.2 faas-cli publish --build-option dev faas-cli publish --tag sha