Skip to content

Commit

Permalink
workflows: don't build stable twice, just push it twice
Browse files Browse the repository at this point in the history
This now matches the `docker_latest.yml` setup. No point building
grist-ee/grist twice.
  • Loading branch information
jordigh committed Jul 12, 2024
1 parent aafc9ba commit 6760416
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit 6760416

Please sign in to comment.