forked from agentscope-ai/AgentTeams
-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (51 loc) · 1.69 KB
/
Copy pathbuild-base.yml
File metadata and controls
61 lines (51 loc) · 1.69 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
name: Build Base Image
on:
workflow_dispatch:
push:
branches:
- main
paths:
- 'openclaw-base/**'
env:
REGISTRY: higress-registry.cn-hangzhou.cr.aliyuncs.com
REPO: agentteams
jobs:
build-base:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Free Up GitHub Actions Ubuntu Runner Disk Space 🔧
uses: jlumbroso/free-disk-space@main
with:
tool-cache: false
android: true
dotnet: true
haskell: true
large-packages: true
swap-storage: true
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Build and push multi-arch base image
run: |
make push-openclaw-base \
VERSION=latest \
REGISTRY=${{ env.REGISTRY }} \
REPO=${{ env.REPO }} \
HIGRESS_REGISTRY=higress-registry.us-west-1.cr.aliyuncs.com
- name: Summary
run: |
echo "### Base Image Build Summary" >> $GITHUB_STEP_SUMMARY
echo "- OpenClaw Base: \`${{ env.REGISTRY }}/${{ env.REPO }}/openclaw-base:latest\`" >> $GITHUB_STEP_SUMMARY
echo "- Platforms: \`linux/amd64, linux/arm64\`" >> $GITHUB_STEP_SUMMARY
echo "- Trigger: \`${{ github.event_name }}\` on \`${{ github.ref_name }}\`" >> $GITHUB_STEP_SUMMARY