From 6760416a249f77b57a54da410012ff7962c9e022 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jordi=20Guti=C3=A9rrez=20Hermoso?= Date: Thu, 11 Jul 2024 17:27:13 -0400 Subject: [PATCH] workflows: don't build stable twice, just push it twice This now matches the `docker_latest.yml` setup. No point building grist-ee/grist twice. --- .github/workflows/docker.yml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 3c908014..98587173 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -29,10 +29,6 @@ jobs: repo: "grist-core" - name: "grist" repo: "grist-ee" - # For now, we build it twice, with `grist-ee` being a - # backwards-compatible synoym for `grist`. - - name: "grist-ee" - repo: "grist-ee" steps: - name: Check out the repo uses: actions/checkout@v3 @@ -81,3 +77,17 @@ jobs: cache-to: type=gha,mode=max build-contexts: ext=ext + - name: Push Enterprise to Docker Hub + if: ${{ matrix.image.name == 'grist' }} + uses: docker/build-push-action@v2 + with: + context: . + build-args: | + BASE_IMAGE=${{ env.DOCKER_HUB_OWNER }}/${{ matrix.image.name}} + BASE_VERSION=${{ env.TAG }} + file: ext/Dockerfile + platforms: ${{ env.PLATFORMS }} + push: true + tags: ${{ env.DOCKER_HUB_OWNER }}/grist-ee:${{ env.TAG }} + cache-from: type=gha + cache-to: type=gha,mode=max