mirror of
https://github.com/vcscsvcscs/GenerationsHeritage.git
synced 2025-08-12 13:59:08 +02:00
update images
This commit is contained in:
2
.github/workflows/auth-service-cd.yml
vendored
2
.github/workflows/auth-service-cd.yml
vendored
@@ -49,4 +49,4 @@ jobs:
|
||||
push: true
|
||||
context: "{{defaultContext}}:cmd/auth"
|
||||
tags: vcscsvcscs/gheritage-auth-service:${{steps.create_image_tag.outputs.result}}
|
||||
platforms: linux/arm64
|
||||
platforms: linux/amd64, linux/arm64
|
||||
|
2
.github/workflows/backend-cd.yml
vendored
2
.github/workflows/backend-cd.yml
vendored
@@ -49,4 +49,4 @@ jobs:
|
||||
push: true
|
||||
context: "{{defaultContext}}:cmd/backend"
|
||||
tags: vcscsvcscs/gheritage-backend-service:${{steps.create_image_tag.outputs.result}}
|
||||
platforms: linux/arm64
|
||||
platforms: linux/amd64, linux/arm64
|
||||
|
@@ -1,4 +1,4 @@
|
||||
FROM arm64v8/golang:1.23.4-alpine AS build
|
||||
FROM --platform=$BUILDPLATFORM golang:alpine AS build
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
@@ -6,11 +6,11 @@ COPY . .
|
||||
|
||||
RUN go get ./...
|
||||
|
||||
RUN GOOS=linux GOARCH=arm64 go build -o auth-service
|
||||
RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -o auth-service
|
||||
|
||||
RUN apk update && apk add ca-certificates && update-ca-certificates
|
||||
|
||||
FROM arm64v8/busybox:1.36.1
|
||||
FROM --platform=$TARGETPLATFORM busybox:1.36.1
|
||||
|
||||
COPY --from=build /etc/ssl/certs /etc/ssl/certs
|
||||
COPY --from=build /app/auth-service /app/
|
||||
|
@@ -1,4 +1,4 @@
|
||||
FROM arm64v8/golang:1.23.4-alpine AS build
|
||||
FROM --platform=$BUILDPLATFORM golang:alpine AS build
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
@@ -6,11 +6,11 @@ COPY . .
|
||||
|
||||
RUN go get ./...
|
||||
|
||||
RUN GOOS=linux GOARCH=arm64 go build -o backend
|
||||
RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -o backend
|
||||
|
||||
RUN apk update && apk add ca-certificates && update-ca-certificates
|
||||
|
||||
FROM arm64v8/busybox:1.36.1
|
||||
FROM --platform=$TARGETPLATFORM busybox:1.36.1
|
||||
|
||||
COPY --from=build /etc/ssl/certs /etc/ssl/certs
|
||||
COPY --from=build /app/backend /app/
|
||||
|
Reference in New Issue
Block a user