diff options
| author | Xe Iaso <me@xeiaso.net> | 2025-04-20 22:09:18 -0400 |
|---|---|---|
| committer | Xe Iaso <me@xeiaso.net> | 2025-04-20 22:09:18 -0400 |
| commit | d913956e760d076ff7f72622871f3fd59d8a3a8e (patch) | |
| tree | 053ce24e99e4ab1725f0c2e91718649030e605dc /.github | |
| parent | 30aaeb2598504912dc99445dfd1c1bd84efa676e (diff) | |
| download | xesite-d913956e760d076ff7f72622871f3fd59d8a3a8e.tar.xz xesite-d913956e760d076ff7f72622871f3fd59d8a3a8e.zip | |
docker buildx bake
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/earthly.yml | 35 |
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" |
