mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 13:50:49 +00:00
ci(release): use blacksmith docker cache for npm telegram
This commit is contained in:
8
.github/workflows/npm-telegram-beta-e2e.yml
vendored
8
.github/workflows/npm-telegram-beta-e2e.yml
vendored
@@ -91,8 +91,8 @@ jobs:
|
||||
echo "image=$image" >> "$GITHUB_OUTPUT"
|
||||
echo "Docker E2E image: \`$image\`" >> "$GITHUB_STEP_SUMMARY"
|
||||
|
||||
- name: Set up Docker Builder
|
||||
uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4
|
||||
- name: Set up Blacksmith Docker Builder
|
||||
uses: useblacksmith/setup-docker-builder@ac083cc84672d01c60d5e8561d0a939b697de542 # v1
|
||||
|
||||
- name: Log in to GHCR
|
||||
uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4
|
||||
@@ -102,14 +102,12 @@ jobs:
|
||||
password: ${{ github.token }}
|
||||
|
||||
- name: Build and push Docker E2E image
|
||||
uses: docker/build-push-action@bcafcacb16a39f128d818304e6c9c0c18556b85f # v7.1.0
|
||||
uses: useblacksmith/build-push-action@cbd1f60d194a98cb3be5523b15134501eaf0fbf3 # v2
|
||||
with:
|
||||
context: .
|
||||
file: ./scripts/e2e/Dockerfile
|
||||
target: build
|
||||
platforms: linux/amd64
|
||||
cache-from: type=gha,scope=docker-e2e
|
||||
cache-to: type=gha,mode=max,scope=docker-e2e
|
||||
tags: ${{ steps.image.outputs.image }}
|
||||
provenance: false
|
||||
push: true
|
||||
|
||||
@@ -57,9 +57,10 @@ describe("npm Telegram live Docker E2E", () => {
|
||||
const workflow = readFileSync(WORKFLOW_PATH, "utf8");
|
||||
|
||||
expect(workflow).toContain("prepare_docker_e2e_image:");
|
||||
expect(workflow).toContain("docker/build-push-action");
|
||||
expect(workflow).toContain("cache-from: type=gha,scope=docker-e2e");
|
||||
expect(workflow).toContain("cache-to: type=gha,mode=max,scope=docker-e2e");
|
||||
expect(workflow).toContain("useblacksmith/setup-docker-builder");
|
||||
expect(workflow).toContain("useblacksmith/build-push-action");
|
||||
expect(workflow).not.toContain("cache-from: type=gha");
|
||||
expect(workflow).not.toContain("cache-to: type=gha");
|
||||
expect(workflow).toContain("needs: [approve_release_manager, prepare_docker_e2e_image]");
|
||||
expect(workflow).toContain('OPENCLAW_SKIP_DOCKER_BUILD: "1"');
|
||||
expect(workflow).toContain(
|
||||
|
||||
Reference in New Issue
Block a user