From 286704bf6fb1fa3988aef0dd8a53271b8ce1c824 Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Tue, 1 Aug 2023 13:40:34 +0200 Subject: [PATCH] ci(buildkit): expose github runtime for gha tests This exposes `ACTIONS_RUNTIME_TOKEN` and `ACTIONS_CACHE_URL`, which are used to skip cache exporter tests, when combined with https://github.com/moby/buildkit/commit/a8789cbd4a657836d1b747a9c4eb54fed4e221bd Co-authored-by: Bjorn Neergaard Signed-off-by: CrazyMax Signed-off-by: Bjorn Neergaard --- .github/workflows/buildkit.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/buildkit.yml b/.github/workflows/buildkit.yml index 036afd2af7..6786626fb4 100644 --- a/.github/workflows/buildkit.yml +++ b/.github/workflows/buildkit.yml @@ -73,6 +73,12 @@ jobs: disabledFeatures="${disabledFeatures},merge_diff" fi echo "BUILDKIT_TEST_DISABLE_FEATURES=${disabledFeatures}" >> $GITHUB_ENV + # Expose `ACTIONS_RUNTIME_TOKEN` and `ACTIONS_CACHE_URL`, which is used + # in BuildKit's test suite to skip/unskip cache exporters: + # https://github.com/moby/buildkit/blob/567a99433ca23402d5e9b9f9124005d2e59b8861/client/client_test.go#L5407-L5411 + - + name: Expose GitHub Runtime + uses: crazy-max/ghaction-github-runtime@v2 - name: Checkout uses: actions/checkout@v3