feat: multi platform images

This commit is contained in:
nisan 2024-08-01 22:28:25 +03:00
parent 8220922cc9
commit c29a57d54d
2 changed files with 2 additions and 1 deletions

View File

@ -26,6 +26,7 @@ jobs:
env: env:
ACTIONS_RUNTIME_TOKEN: '' ACTIONS_RUNTIME_TOKEN: ''
with: with:
platforms: linux/amd64,linux/arm64
context: . context: .
push: true push: true
tags: git.lovepin.app/nisan/avatars:latest tags: git.lovepin.app/nisan/avatars:latest

View File

@ -21,7 +21,7 @@ RUN go mod download
RUN go mod verify RUN go mod verify
# Build the binary. # 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 # STEP 2 build a small image