|
54 | 54 | run_bun_global_install_smoke: ${{ steps.manifest.outputs.run_bun_global_install_smoke }} |
55 | 55 | target_sha: ${{ steps.manifest.outputs.target_sha }} |
56 | 56 | dockerfile_image: ${{ steps.manifest.outputs.dockerfile_image }} |
57 | | - dockerfile_cache_scope: ${{ steps.manifest.outputs.dockerfile_cache_scope }} |
58 | 57 | steps: |
59 | 58 | - name: Checkout |
60 | 59 | uses: actions/checkout@v6 |
|
81 | 80 | target_sha="$(git rev-parse HEAD)" |
82 | 81 | owner="$(printf '%s' "${GITHUB_REPOSITORY_OWNER:-openclaw}" | tr '[:upper:]' '[:lower:]')" |
83 | 82 | dockerfile_image="ghcr.io/${owner}/openclaw-dockerfile-smoke:${target_sha}" |
84 | | - dockerfile_cache_scope="openclaw-dockerfile-smoke" |
85 | 83 | if [ "$event_name" = "schedule" ]; then |
86 | 84 | run_bun_global_install_smoke=true |
87 | 85 | elif [ "$event_name" = "workflow_dispatch" ] || [ "$event_name" = "workflow_call" ]; then |
|
97 | 95 | echo "run_bun_global_install_smoke=$run_bun_global_install_smoke" |
98 | 96 | echo "target_sha=$target_sha" |
99 | 97 | echo "dockerfile_image=$dockerfile_image" |
100 | | - echo "dockerfile_cache_scope=$dockerfile_cache_scope" |
101 | 98 | } >> "$GITHUB_OUTPUT" |
102 | 99 |
|
103 | 100 | install-smoke-fast: |
@@ -254,14 +251,11 @@ jobs: |
254 | 251 | - name: Build and push root Dockerfile smoke image |
255 | 252 | if: steps.existing.outputs.exists != 'true' |
256 | 253 | env: |
257 | | - CACHE_SCOPE: ${{ needs.preflight.outputs.dockerfile_cache_scope }} |
258 | 254 | IMAGE_REF: ${{ needs.preflight.outputs.dockerfile_image }} |
259 | 255 | run: | |
260 | 256 | timeout 45m docker buildx build \ |
261 | 257 | --progress=plain \ |
262 | 258 | --push \ |
263 | | - --cache-from "type=gha,scope=${CACHE_SCOPE}" \ |
264 | | - --cache-to "type=gha,scope=${CACHE_SCOPE},mode=max" \ |
265 | 259 | --build-arg OPENCLAW_EXTENSIONS=matrix \ |
266 | 260 | -t "$IMAGE_REF" \ |
267 | 261 | -f ./Dockerfile \ |
|
0 commit comments