Skip to content

Commit

Permalink
Update publishing to multi-platform
Browse files Browse the repository at this point in the history
  • Loading branch information
RafhaanShah committed Nov 2, 2022
1 parent 58bf3d7 commit a9c10c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jobs:
id: docker_build
uses: docker/build-push-action@v3
with:
platforms: linux/amd64,linux/arm64,linux/arm/v7
push: true
tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.vars.outputs.tag }}
Expand Down
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# Build the app
FROM golang:1.18-alpine AS build

WORKDIR /build
COPY . .
RUN go build app.go

# Run the app
FROM alpine:latest

LABEL org.opencontainers.image.source https://github.com/RafhaanShah/Container-Mon
Expand Down

0 comments on commit a9c10c5

Please sign in to comment.