From 7387f6bc4f6aad8b569edee11eb5501b47065c0f Mon Sep 17 00:00:00 2001 From: Vicente Adolfo Bolea Sanchez Date: Wed, 11 Nov 2026 16:40:45 -0500 Subject: [PATCH 1/2] Build and push a docker image for each release Releases created with GITHUB_TOKEN do not trigger other workflows, so the image is built from a job in release.yml, tagged with the release version and stable. --- .github/workflows/release.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 51bf594..85124ed 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,6 +13,7 @@ jobs: runs-on: ubuntu-latest outputs: published: ${{ steps.semrel.outputs.new_release_published }} + version: ${{ steps.semrel.outputs.new_release_version }} steps: - name: Checkout uses: actions/checkout@v4 @@ -63,3 +64,31 @@ jobs: - name: Publish to PyPI uses: pypa/gh-action-pypi-publish@release/v1 + + docker: + name: Build and Push vtk-prompt Release Image + needs: release + if: needs.release.outputs.published == 'true' + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + steps: + - uses: actions/checkout@v4 + with: + ref: release + + - uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - uses: docker/build-push-action@v6 + with: + context: . + file: scripts/vtk-prompt.Dockerfile + push: true + tags: | + ghcr.io/kitware/vtk-prompt/vtk-prompt:${{ needs.release.outputs.version }} + ghcr.io/kitware/vtk-prompt/vtk-prompt:stable From 95909bba06a743456bc856f7e1346ce39ccb1b93 Mon Sep 17 00:00:00 2001 From: Vicente Adolfo Bolea Sanchez Date: Wed, 11 Nov 2026 16:41:23 -0500 Subject: [PATCH 2/2] Tag release images latest and master images with a master suffix --- .github/workflows/ci.yml | 4 ++-- .github/workflows/release.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0a3a918..1ecee38 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -197,5 +197,5 @@ jobs: file: scripts/vtk-prompt.Dockerfile push: true tags: | - ghcr.io/kitware/vtk-prompt/vtk-prompt:latest - ghcr.io/kitware/vtk-prompt/vtk-prompt:${{ github.sha }} + ghcr.io/kitware/vtk-prompt/vtk-prompt:latest-master + ghcr.io/kitware/vtk-prompt/vtk-prompt:${{ github.sha }}-master diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 85124ed..87fa2a3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -91,4 +91,4 @@ jobs: push: true tags: | ghcr.io/kitware/vtk-prompt/vtk-prompt:${{ needs.release.outputs.version }} - ghcr.io/kitware/vtk-prompt/vtk-prompt:stable + ghcr.io/kitware/vtk-prompt/vtk-prompt:latest