Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/workflows/docker-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,24 @@ on:
- main
tags:
- 'v*'
paths:
- 'Dockerfile'
- 'Dockerfile.alpine'
- 'OPENCLAW_VERSION'
- '.github/workflows/docker-release.yml'
pull_request:
branches:
- main
paths:
- 'Dockerfile'
- 'Dockerfile.alpine'
- '.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'
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Loading