add more platforms do a docker bot

This commit is contained in:
kulikov0 committed 2026-05-10 18:53:24 +02:00
1 parent 801c732824
commit a1522f7223
2 files changed
+7 -2

No files matched your search

+3
View File
@@ -15,6 +15,8 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
@@ -36,6 +38,7 @@ jobs:
with:
context: .
file: headless/docker/Dockerfile
platforms: linux/amd64,linux/arm64,linux/386
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
+4 -2
View File
@@ -1,5 +1,7 @@
FROM golang:1.26-bookworm AS build
ENV CGO_ENABLED=0
FROM --platform=$BUILDPLATFORM golang:1.26-bookworm AS build
ARG TARGETOS
ARG TARGETARCH
ENV CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH
WORKDIR /src
COPY relay /src/relay