ci(release): use blacksmith docker cache for npm telegram · openclaw/openclaw@f353a61
obviyus
·
2026-04-24
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -91,8 +91,8 @@ jobs:
|
91 | 91 | echo "image=$image" >> "$GITHUB_OUTPUT" |
92 | 92 | echo "Docker E2E image: \`$image\`" >> "$GITHUB_STEP_SUMMARY" |
93 | 93 | |
94 | | - - name: Set up Docker Builder |
95 | | -uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4 |
| 94 | + - name: Set up Blacksmith Docker Builder |
| 95 | +uses: useblacksmith/setup-docker-builder@ac083cc84672d01c60d5e8561d0a939b697de542 # v1 |
96 | 96 | |
97 | 97 | - name: Log in to GHCR |
98 | 98 | uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4 |
@@ -102,14 +102,12 @@ jobs:
|
102 | 102 | password: ${{ github.token }} |
103 | 103 | |
104 | 104 | - name: Build and push Docker E2E image |
105 | | -uses: docker/build-push-action@bcafcacb16a39f128d818304e6c9c0c18556b85f # v7.1.0 |
| 105 | +uses: useblacksmith/build-push-action@cbd1f60d194a98cb3be5523b15134501eaf0fbf3 # v2 |
106 | 106 | with: |
107 | 107 | context: . |
108 | 108 | file: ./scripts/e2e/Dockerfile |
109 | 109 | target: build |
110 | 110 | platforms: linux/amd64 |
111 | | -cache-from: type=gha,scope=docker-e2e |
112 | | -cache-to: type=gha,mode=max,scope=docker-e2e |
113 | 111 | tags: ${{ steps.image.outputs.image }} |
114 | 112 | provenance: false |
115 | 113 | push: true |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -57,9 +57,10 @@ describe("npm Telegram live Docker E2E", () => {
|
57 | 57 | const workflow = readFileSync(WORKFLOW_PATH, "utf8"); |
58 | 58 | |
59 | 59 | expect(workflow).toContain("prepare_docker_e2e_image:"); |
60 | | -expect(workflow).toContain("docker/build-push-action"); |
61 | | -expect(workflow).toContain("cache-from: type=gha,scope=docker-e2e"); |
62 | | -expect(workflow).toContain("cache-to: type=gha,mode=max,scope=docker-e2e"); |
| 60 | +expect(workflow).toContain("useblacksmith/setup-docker-builder"); |
| 61 | +expect(workflow).toContain("useblacksmith/build-push-action"); |
| 62 | +expect(workflow).not.toContain("cache-from: type=gha"); |
| 63 | +expect(workflow).not.toContain("cache-to: type=gha"); |
63 | 64 | expect(workflow).toContain("needs: [approve_release_manager, prepare_docker_e2e_image]"); |
64 | 65 | expect(workflow).toContain('OPENCLAW_SKIP_DOCKER_BUILD: "1"'); |
65 | 66 | expect(workflow).toContain( |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。