Skip to content

Commit

Permalink
multi-platform kubestr image
Browse files Browse the repository at this point in the history
  • Loading branch information
bathina2 committed Dec 2, 2024
1 parent 1140b95 commit 95bf2c2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ jobs:
- name: Build and push Docker image
uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75 # v6.9.0
with:
platforms: linux/amd64,linux/arm64,linux/ppc64le
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
Expand Down
9 changes: 6 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
FROM golang:1.22-bullseye AS builder
FROM golang:1.22-bookworm AS builder

ARG TARGETOS
ARG TARGETARCH

ENV GO111MODULE=on \
CGO_ENABLED=0 \
GOOS=linux \
GOARCH=amd64 \
GOOS=${TARGETOS} \
GOARCH=${TARGETARCH} \
GOBIN=/dist

WORKDIR /app
Expand Down

0 comments on commit 95bf2c2

Please sign in to comment.