Skip to content

Commit

Permalink
Merge pull request #81 from cwboden/multiarch-support
Browse files Browse the repository at this point in the history
feat: Add multi-arch support for releases.
  • Loading branch information
djeebus authored Nov 7, 2023
2 parents 41fa4c2 + 6c36eb8 commit 27b0fd3
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/on_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
run: |
earthly \
--push \
+build-image \
+build-image-multiarch \
--version=${{ env.RELEASE_VERSION }} \
--commitSHA=${{ env.SHORT_SHA }} \
--image_name=ghcr.io/${{ github.repository_owner }}/prom-aggregation-gateway
7 changes: 7 additions & 0 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ build:
BUILD +build-image
BUILD +build-helm

release-multiarch:
BUILD +release-binaries
BUILD +build-image-multiarch

release:
BUILD +release-binaries
BUILD +build-image
Expand All @@ -51,6 +55,9 @@ build-binary:

SAVE ARTIFACT ./prom-aggregation-gateway

build-image-multiarch:
BUILD --platform=linux/arm64 --platform=linux/amd64 +build-image

build-image:
FROM alpine:${ALPINE_VERSION}
COPY +build-binary/prom-aggregation-gateway .
Expand Down
31 changes: 17 additions & 14 deletions Earthfile.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
```mermaid
graph TD
build --> build-helm
build --> build-image
build-binary --> go-deps
build-image --> build-binary
ci-golang --> lint-golang
ci-golang --> test-golang
ci-helm --> test-helm
continuous-deploy --> build-helm
lint-golang --> go-deps
release --> build-image
release --> release-binaries
release-binaries --> build-binaries
test --> ci-golang
test-golang --> go-deps
ci-helm --> test-helm
test --> ci-golang
test-golang --> go-deps
lint-golang --> go-deps
continuous-deploy --> build-helm
build --> build-helm
build --> build-image
build-binary --> go-deps
build-image --> build-binary
ci-golang --> lint-golang
ci-golang --> test-golang
build-image-multiarch --> build-image
release --> build-image
release --> release-binaries
release-multiarch --> release-binaries
release-multiarch --> build-image-multiarch
release-binaries --> build-binaries
```

0 comments on commit 27b0fd3

Please sign in to comment.