aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXe Iaso <me@xeiaso.net>2024-06-22 13:11:56 -0400
committerXe Iaso <me@xeiaso.net>2024-06-22 13:12:03 -0400
commitfdba730f9fe7b932baa6216512ddbdfe091262b5 (patch)
tree5912979c6797a5b400d3c535f80165a899378630
parent12bf114e68aed5689be459ee7dcfc9eeaef69e4e (diff)
downloadxesite-fdba730f9fe7b932baa6216512ddbdfe091262b5.tar.xz
xesite-fdba730f9fe7b932baa6216512ddbdfe091262b5.zip
Earthfile: add all target
Signed-off-by: Xe Iaso <me@xeiaso.net>
-rw-r--r--.github/workflows/earthly.yml7
-rw-r--r--Earthfile6
2 files changed, 8 insertions, 5 deletions
diff --git a/.github/workflows/earthly.yml b/.github/workflows/earthly.yml
index 0719589..14b3e04 100644
--- a/.github/workflows/earthly.yml
+++ b/.github/workflows/earthly.yml
@@ -32,14 +32,12 @@ jobs:
if: github.event_name != 'pull_request'
id: build-and-push
run: |
- earthly --push +xesite
- earthly --push +patreon-saasproxy
+ earthly --ci --push +all
- name: Build Docker image
if: github.event_name == 'pull_request'
id: build
run: |
- earthly +xesite
- earthly +patreon-saasproxy
+ earthly --ci +all
deploy-patreon:
name: "Deploy patreon-saasproxy"
@@ -60,6 +58,7 @@ jobs:
- 'internal/**/*.go'
- 'go.mod'
- 'go.sum'
+ - 'Earthfile'
- if: steps.changes.outputs.src == 'true'
run: flyctl deploy --remote-only -c ./fly/patreon-saasproxy/fly.toml
env:
diff --git a/Earthfile b/Earthfile
index ebf5c24..da553f4 100644
--- a/Earthfile
+++ b/Earthfile
@@ -74,4 +74,8 @@ xesite:
LABEL org.opencontainers.image.source="https://github.com/Xe/site"
- SAVE IMAGE --push ghcr.io/xe/site/bin:earthly \ No newline at end of file
+ SAVE IMAGE --push ghcr.io/xe/site/bin:earthly
+
+all:
+ BUILD --platform=linux/amd64 +xesite
+ BUILD --platform=linux/amd64 +patreon-saasproxy \ No newline at end of file