Skip to content

Commit

Permalink
update cache url
Browse files Browse the repository at this point in the history
  • Loading branch information
coffee-cup committed Feb 6, 2025
1 parent 5806b18 commit 67283b5
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ jobs:
docker run --rm --privileged -d \
--name buildkit \
-e BUILDKIT_DEBUG=1 \
-e ACTIONS_CACHE_URL=${{ env.ACTIONS_CACHE_URL }} \
-e ACTIONS_RUNTIME_TOKEN=${{ env.ACTIONS_RUNTIME_TOKEN }} \
moby/buildkit:latest
# Wait for BuildKit to be ready
Expand All @@ -57,13 +59,14 @@ jobs:
run: go mod download

- name: Run test for ${{ matrix.example }}
env:
ACTIONS_CACHE_URL: ${{ env.ACTIONS_CACHE_URL }}
ACTIONS_RUNTIME_TOKEN: ${{ env.ACTIONS_RUNTIME_TOKEN }}
run: |
# Add cache import/export flags to the test command
go test -v ./integration_tests \
-run "TestExamplesIntegration/${{ matrix.example }}" \
-timeout 30m \
-buildkit-cache-import=type=gha,scope=${{ matrix.example }} \
-buildkit-cache-export=type=gha,mode=max,scope=${{ matrix.example }}
- name: Stop BuildKit
if: always()
run: docker stop buildkit

0 comments on commit 67283b5

Please sign in to comment.