From 150d3d7b33ad5e3acd8dfe0723ffbbb9a66879ee Mon Sep 17 00:00:00 2001 From: Vargha Csongor Date: Sun, 14 Apr 2024 00:03:14 +0200 Subject: [PATCH] Change image to arm64v8 --- .github/workflows/auth-service-cd.yml | 1 + .github/workflows/backend-cd.yml | 1 + auth-service/dockerfile | 4 ++-- backend/dockerfile | 4 ++-- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/auth-service-cd.yml b/.github/workflows/auth-service-cd.yml index 145b121..8e48033 100644 --- a/.github/workflows/auth-service-cd.yml +++ b/.github/workflows/auth-service-cd.yml @@ -48,3 +48,4 @@ jobs: push: true context: "{{defaultContext}}:auth-service" tags: vcscsvcscs/gheritage-auth-service:${{steps.create_image_tag.outputs.result}} + platforms: linux/arm64v8 diff --git a/.github/workflows/backend-cd.yml b/.github/workflows/backend-cd.yml index 32f3767..6a05f50 100644 --- a/.github/workflows/backend-cd.yml +++ b/.github/workflows/backend-cd.yml @@ -48,3 +48,4 @@ jobs: push: true context: "{{defaultContext}}:backend" tags: vcscsvcscs/gheritage-backend-service:${{steps.create_image_tag.outputs.result}} + platforms: linux/arm64v8 diff --git a/auth-service/dockerfile b/auth-service/dockerfile index c74d73f..3146eb1 100644 --- a/auth-service/dockerfile +++ b/auth-service/dockerfile @@ -4,9 +4,9 @@ WORKDIR /app COPY . . -RUN go build -o auth-service +RUN GOOS=linux GOARCH=arm64 go build -o auth-service -FROM busybox +FROM arm64v8/busybox COPY --from=build /app/auth-service /app/ diff --git a/backend/dockerfile b/backend/dockerfile index 612b050..fe3d3ad 100644 --- a/backend/dockerfile +++ b/backend/dockerfile @@ -4,9 +4,9 @@ WORKDIR /app COPY . . -RUN go build -o backend +RUN GOOS=linux GOARCH=arm64 go build -o backend -FROM busybox +FROM arm64v8/busybox COPY --from=build /app/backend /app/