From 4f5c2bbe2ed89e27306d6e2ce1ff51e59b44fb15 Mon Sep 17 00:00:00 2001 From: totegamma Date: Sun, 9 Jun 2024 22:15:49 +0900 Subject: [PATCH] fix cert issue --- .github/workflows/docker-publish.yml | 2 +- cmd/api/Dockerfile | 1 + cmd/gateway/Dockerfile | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 576f51f8..a562b931 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -78,7 +78,7 @@ jobs: context: . file: ${{ matrix.dockerfile }} push: ${{ github.event_name != 'pull_request' }} - platforms: linux/amd64,linux/arm64 + platforms: linux/amd64,linux/arm64/v8 tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} cache-from: type=gha diff --git a/cmd/api/Dockerfile b/cmd/api/Dockerfile index 3bfa26a1..5d3f161e 100644 --- a/cmd/api/Dockerfile +++ b/cmd/api/Dockerfile @@ -8,6 +8,7 @@ COPY ./ ./ RUN go build -ldflags "-s -w -X main.version=$(git describe) -X \"main.buildMachine=$(uname -srmo)\" -X \"main.buildTime=$(date)\" -X \"main.goVersion=$(go version)\"" -o ccapi ./cmd/api FROM ubuntu:latest +RUN apt-get update && apt-get install -y ca-certificates curl --no-install-recommends && rm -rf /var/lib/apt/lists/* COPY --from=coreBuilder /work/ccapi /usr/local/bin diff --git a/cmd/gateway/Dockerfile b/cmd/gateway/Dockerfile index 263ba699..5b1a233c 100644 --- a/cmd/gateway/Dockerfile +++ b/cmd/gateway/Dockerfile @@ -8,6 +8,7 @@ COPY ./ ./ RUN go build -ldflags "-s -w -X main.version=$(git describe) -X \"main.buildMachine=$(uname -srmo)\" -X \"main.buildTime=$(date)\" -X \"main.goVersion=$(go version)\"" -o ccgateway ./cmd/gateway FROM ubuntu:latest +RUN apt-get update && apt-get install -y ca-certificates curl --no-install-recommends && rm -rf /var/lib/apt/lists/* COPY --from=coreBuilder /work/ccgateway /usr/local/bin