Skip to content

Commit

Permalink
added multi-platform builds
Browse files Browse the repository at this point in the history
  • Loading branch information
mosajjal committed Feb 3, 2025
1 parent 48bb762 commit 4379297
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ghcr-main-dev.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Publish dnsmonster to "dev" tag on each push
on:
push:
branches: [ main ]
branches: [main]

env:
REGISTRY: "ghcr.io"
Expand Down Expand Up @@ -36,5 +36,6 @@ jobs:
with:
context: .
push: true
tags: ${{ env.REGISTRY }}/${{ github.actor }}/dnsmonster:dev
tags: ${{ env.REGISTRY }}/${{ github.actor }}/dnsmonster:dev
labels: ${{ env.REGISTRY }}/${{ github.actor }}/dnsmonster:dev
platforms: linux/amd64,linux/arm/v6,linux/arm64
1 change: 1 addition & 0 deletions .github/workflows/ghcr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,4 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64,linux/arm/v6,linux/arm64
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM alpine:edge
LABEL maintainer "Ali Mosajjal <[email protected]>"
FROM --platform=${BUILDPLATFORM:-linux/amd64} alpine:edge
LABEL maintainer="Ali Mosajjal <[email protected]>"

ENV REPO="github.com/mosajjal/dnsmonster"

Expand Down

0 comments on commit 4379297

Please sign in to comment.