-
Notifications
You must be signed in to change notification settings - Fork 9
83 lines (75 loc) · 2.59 KB
/
openclaw-release.yml
File metadata and controls
83 lines (75 loc) · 2.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: Build OpenClaw Image
on:
push:
tags:
- "v*"
workflow_dispatch:
inputs:
openclawTag:
default: "2026.2.3"
description: "OpenClaw Release Tag 2026.2.3, etc."
required: true
dockerhubTag:
default: "2026.2.3"
description: "Docker Hub Tag"
required: false
platforms:
description: "Platforms"
default: "linux/amd64,linux/arm64/v8"
required: true
pushLatest:
description: "Push latest tag"
default: "true"
required: true
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Download Source
run: |
set -euo pipefail
mkdir -p _src/openclaw
curl -fsSL "https://github.com/openclaw/openclaw/archive/refs/tags/v${{ github.event.inputs.openclawTag }}.tar.gz" \
| tar -xz -C _src/openclaw --strip-components=1
mkdir -p _src/openclaw/openclaw
cp openclaw/Dockerfile _src/openclaw/openclaw/
- name: Build OpenClaw Image and Push
uses: docker/build-push-action@v6
with:
context: _src/openclaw
file: _src/openclaw/openclaw/Dockerfile
platforms: ${{ github.event.inputs.platforms || 'linux/amd64,linux/arm64/v8' }}
push: true
build-args: |
OPENCLAW_INSTALL_BROWSER=true
OPENCLAW_VERSION=${{ github.event.inputs.openclawTag }}
tags: |
1panel/openclaw:${{ github.event.inputs.dockerhubTag || github.event.inputs.openclawTag }}
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Push Latest Tag
if: ${{ github.event_name == 'push' || github.event.inputs.pushLatest == 'true' }}
uses: docker/build-push-action@v6
with:
context: _src/openclaw
file: _src/openclaw/openclaw/Dockerfile
platforms: ${{ github.event.inputs.platforms || 'linux/amd64,linux/arm64/v8' }}
push: true
build-args: |
OPENCLAW_INSTALL_BROWSER=true
OPENCLAW_VERSION=${{ github.event.inputs.openclawTag }}
tags: |
1panel/openclaw:latest
cache-from: type=gha
cache-to: type=gha,mode=max