Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

ci: slack notification on releases, move Docker until after pypi release (#8719)

Myles Scolnick2a1576ee3f2a
diff --git a/.github/workflows/publish-docker.yml b/.github/workflows/publish-docker.yml
index 616465b9bc..8102b43503 100644
--- a/.github/workflows/publish-docker.yml
+++ b/.github/workflows/publish-docker.yml
@@ -126,6 +126,7 @@ jobs:
exit 1
- name: 📦 Build and push Docker images (slim)
+ id: build_slim
uses: docker/build-push-action@v6
with:
context: .
@@ -143,6 +144,7 @@ jobs:
cache-to: type=gha,mode=max
- name: 📦 Build and push Docker images (data)
+ id: build_data
uses: docker/build-push-action@v6
with:
context: .
@@ -160,6 +162,7 @@ jobs:
cache-to: type=gha,mode=max
- name: 📦 Build and push Docker images (sql)
+ id: build_sql
uses: docker/build-push-action@v6
with:
context: .
@@ -175,3 +178,24 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
+
+ - name: 🔍 Determine Docker publish status
+ if: always()
+ id: docker_publish_status
+ run: |
+ status="success"
+ if [ "${{ steps.build_slim.outcome }}" = "failure" ] || \
+ [ "${{ steps.build_data.outcome }}" = "failure" ] || \
+ [ "${{ steps.build_sql.outcome }}" = "failure" ]; then
+ status="failure"
+ fi
+ echo "status=$status" >> "$GITHUB_OUTPUT"
+
+ - name: 📢 Notify release result
+ if: always()
+ continue-on-error: true
+ uses: marimo-team/internal-gh-actions/release-notification@main
+ with:
+ status: ${{ steps.docker_publish_status.outputs.status }}
+ slack-webhook-url: ${{ secrets.SLACK_WEBHOOK_URL_RELEASES }}
+ artifact-url: "https://ghcr.io/marimo-team/marimo"
diff --git a/.github/workflows/release-marimo-base.yml b/.github/workflows/release-marimo-base.yml
index ca646a72d9..1a6d6778b0 100644
--- a/.github/workflows/release-marimo-base.yml
+++ b/.github/workflows/release-marimo-base.yml
@@ -59,3 +59,12 @@ jobs:
skip-existing: true
attestations: false
repository-url: https://test.pypi.org/legacy/
+
+ - name: 📢 Notify release result
+ if: always()
+ continue-on-error: true
+ uses: marimo-team/internal-gh-actions/release-notification@main
+ with:
+ status: ${{ job.status }}
+ slack-webhook-url: ${{ secrets.SLACK_WEBHOOK_URL_RELEASES }}
+ artifact-url: "https://pypi.org/project/marimo-base/"
diff --git a/.github/workflows/release-prod.yml b/.github/workflows/release-prod.yml
index aab0fb786a..0ad7349eda 100644
--- a/.github/workflows/release-prod.yml
+++ b/.github/workflows/release-prod.yml
@@ -114,12 +114,3 @@ jobs:
id-token: write # Required for OIDC
contents: read
- publish_docker:
- name: 🐋 Publish Docker images
- needs: publish_release
- uses: ./.github/workflows/publish-docker.yml
- with:
- marimo_version: ${{ needs.publish_release.outputs.marimo_version }}
- permissions:
- contents: read
- packages: write
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 98cd56879f..7d8d2ef6ba 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -26,7 +26,6 @@ jobs:
secrets: inherit
permissions:
contents: read # Required for checkout
- packages: write # Required for Docker image publishing
id-token: write # Required for nodejs OIDC
publish_prod_pypi:
@@ -47,6 +46,27 @@ jobs:
- name: 📤 Upload to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
+ - name: 📢 Notify release result
+ if: always()
+ continue-on-error: true
+ uses: marimo-team/internal-gh-actions/release-notification@main
+ with:
+ status: ${{ job.status }}
+ slack-webhook-url: ${{ secrets.SLACK_WEBHOOK_URL_RELEASES }}
+ artifact-url: "https://pypi.org/project/marimo/"
+
+ publish_docker:
+ name: 🐋 Publish Docker images
+ if: startsWith(github.ref, 'refs/tags/')
+ needs: [build_prod, publish_prod_pypi]
+ uses: ./.github/workflows/publish-docker.yml
+ with:
+ marimo_version: ${{ needs.build_prod.outputs.marimo_version }}
+ secrets: inherit
+ permissions:
+ contents: read # Required for checkout
+ packages: write # Required for Docker image publishing
+
# ── Development Release (push to main) ─────────────────────────
build_dev: