From c29a57d54daaaea5a31e2bec5796046019afcd4f Mon Sep 17 00:00:00 2001 From: nisan Date: Thu, 1 Aug 2024 22:28:25 +0300 Subject: [PATCH] feat: multi platform images --- .github/workflows/main.yml | 1 + Dockerfile | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e0db37f..aec6607 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -26,6 +26,7 @@ jobs: env: ACTIONS_RUNTIME_TOKEN: '' with: + platforms: linux/amd64,linux/arm64 context: . push: true tags: git.lovepin.app/nisan/avatars:latest \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 069b9ad..f92ec59 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,7 +21,7 @@ RUN go mod download RUN go mod verify # Build the binary. -RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o /go/bin/avatars +RUN CGO_ENABLED=0 go build -ldflags="-w -s" -o /go/bin/avatars ############################ # STEP 2 build a small image