aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/earthly.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/earthly.yml')
-rw-r--r--.github/workflows/earthly.yml35
1 files changed, 22 insertions, 13 deletions
diff --git a/.github/workflows/earthly.yml b/.github/workflows/earthly.yml
index b76055e..fe45048 100644
--- a/.github/workflows/earthly.yml
+++ b/.github/workflows/earthly.yml
@@ -14,15 +14,13 @@ jobs:
permissions:
contents: read
packages: write
- env:
- EARTHLY_TOKEN: ${{ secrets.EARTHLY_TOKEN }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- - uses: earthly/actions-setup@v1
- with:
- github-token: ${{ secrets.GITHUB_TOKEN }}
- version: "latest" # or pin to an specific version, e.g. "0.8.1"
+
+ - name: Set up Docker Buildx
+ uses: docker/setup-buildx-action@v3
+
- name: Log into registry
if: github.event_name != 'pull_request'
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0
@@ -30,16 +28,27 @@ jobs:
registry: ghcr.io
username: xe
password: ${{ secrets.GITHUB_TOKEN }}
- - name: Build and push Docker image
+
+ - name: Build and push
if: github.event_name != 'pull_request'
- id: build-and-push
- run: |
- earthly --org me-2625 --sat alpha --ci --push +all
+ id: build
+ uses: docker/bake-action@v6
+ with:
+ source: .
+ push: true
+ set: |
+ patreon-saasproxy.tags=ghcr.io/xe/site/patreon-saasproxy:latest
+ xesite.tags=ghcr.io/xe/site/bin:latest
+
- name: Build Docker image
if: github.event_name == 'pull_request'
- id: build
- run: |
- earthly --org me-2625 --sat alpha --ci +all
+ uses: docker/bake-action@v6
+ with:
+ source: .
+ push: true
+ set: |
+ patreon-saasproxy.tags=ghcr.io/xe/site/patreon-saasproxy:latest
+ xesite.tags=ghcr.io/xe/site/bin:latest
deploy:
name: "Deploy xesite"