From 65f9130eb429e912e5447c06456491d5012b4076 Mon Sep 17 00:00:00 2001 From: moltenhub-bot Date: Mon, 20 Apr 2026 12:34:11 -0700 Subject: [PATCH 1/2] chore: Reduce duplicate builds, to ensure price efficiency --- .github/workflows/docker-release.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/docker-release.yml b/.github/workflows/docker-release.yml index 6c5c0aa..8a4738b 100644 --- a/.github/workflows/docker-release.yml +++ b/.github/workflows/docker-release.yml @@ -6,11 +6,25 @@ on: - main tags: - 'v*' + paths: + - 'Dockerfile' + - 'Dockerfile.alpine' + - 'OPENCLAW_VERSION' + - '.github/workflows/docker-release.yml' pull_request: branches: - main + paths: + - 'Dockerfile' + - 'Dockerfile.alpine' + - 'OPENCLAW_VERSION' + - '.github/workflows/docker-release.yml' workflow_dispatch: +concurrency: + group: docker-release-${{ github.event_name }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: validate: if: github.event_name == 'pull_request' From f3a1b066a7e3454471ad79b608656b4a1b694527 Mon Sep 17 00:00:00 2001 From: moltenhub-bot Date: Mon, 20 Apr 2026 12:58:51 -0700 Subject: [PATCH 2/2] chore: Review the PR -> https://github.com/Molten-Bot/openclaw/pull/38 --- .github/workflows/docker-release.yml | 1 - README.md | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/docker-release.yml b/.github/workflows/docker-release.yml index 8a4738b..2cfbdb0 100644 --- a/.github/workflows/docker-release.yml +++ b/.github/workflows/docker-release.yml @@ -17,7 +17,6 @@ on: paths: - 'Dockerfile' - 'Dockerfile.alpine' - - 'OPENCLAW_VERSION' - '.github/workflows/docker-release.yml' workflow_dispatch: diff --git a/README.md b/README.md index b0be271..e4c117b 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ Alpine tags are currently published for: [![Build & Push to Docker Hub](https://github.com/Molten-Bot/openclaw/actions/workflows/docker-release.yml/badge.svg)](https://github.com/Molten-Bot/openclaw/actions/workflows/docker-release.yml) -Pull requests run the Docker build matrix as validation; only `main` pushes and `v*` tags publish images to Docker Hub. +Pull requests that change Dockerfiles or this workflow run the Docker build matrix as validation; `OPENCLAW_VERSION`-only changes build on `main` push. Only `main` pushes and `v*` tags publish images to Docker Hub. ## Usage