feat: multi platform images
This commit is contained in:
parent
8220922cc9
commit
c29a57d54d
1
.github/workflows/main.yml
vendored
1
.github/workflows/main.yml
vendored
@ -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
|
||||||
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user