Compare commits

..

1 Commits

Author SHA1 Message Date
dependabot[bot]
2a7a5fe65d chore(deps): Bump actions/cache from 4 to 5
Bumps [actions/cache](https://github.com/actions/cache) from 4 to 5.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-12 11:01:05 +00:00
4 changed files with 3 additions and 36 deletions

View File

@@ -25,10 +25,6 @@ on:
password_secret:
required: false
type: string
cache:
required: false
type: string
default: registry
env:
HARBOR_VERSION: v2.13.2
@@ -60,24 +56,6 @@ jobs:
if: inputs.type == 'local'
run: |
cat ./.github/e2e/${{ inputs.id }}/env >> $GITHUB_ENV
-
name: Set up outputs
uses: actions/github-script@v8
env:
INPUT_SLUG: ${{ env.REGISTRY_SLUG || inputs.slug }}
INPUT_CACHE: ${{ inputs.cache }}
with:
script: |
const inpSlug = core.getInput('slug');
const inpCache = core.getInput('cache');
if (inpCache === 'registry') {
core.exportVariable('CACHE_FROM', `type=registry,ref=${inpSlug}:master`);
core.exportVariable('CACHE_TO', 'type=inline');
} else if (inpCache === 's3') {
const cacheName = inpSlug.replace(/[^a-zA-Z0-9]/g, '-').toLowerCase();
core.exportVariable('CACHE_FROM', `type=s3,region=us-east-2,bucket=buildkit-s3-cache-test,name=${cacheName}`);
core.exportVariable('CACHE_TO', `type=s3,region=us-east-2,bucket=buildkit-s3-cache-test,name=${cacheName},mode=max`);
}
-
name: Set up BuildKit config
run: |
@@ -143,12 +121,8 @@ jobs:
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: ${{ env.CACHE_FROM }}
cache-to: ${{ env.CACHE_TO }}
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_S3_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_S3_SECRET_ACCESS_KEY }}
AWS_SESSION_TOKEN: ${{ secrets.AWS_S3_SESSION_TOKEN }}
cache-from: type=registry,ref=${{ env.REGISTRY_SLUG || inputs.slug }}:master
cache-to: type=inline
-
name: Inspect image
run: |

View File

@@ -967,7 +967,7 @@ jobs:
buildkitd-flags: --debug
-
name: Cache Build
uses: actions/cache@v4
uses: actions/cache@v5
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-local-test-${{ github.sha }}

View File

@@ -25,11 +25,6 @@ jobs:
name: Distribution
id: distribution
type: local
-
name: Distribution (s3 cache)
id: distribution
type: local
cache: s3
-
name: Docker Hub
registry: ''
@@ -109,5 +104,4 @@ jobs:
slug: ${{ matrix.slug }}
username_secret: ${{ matrix.username_secret }}
password_secret: ${{ matrix.password_secret }}
cache: ${{ matrix.cache || 'registry' }}
secrets: inherit

View File

@@ -1,6 +1,5 @@
# syntax=docker/dockerfile:1
FROM --platform=$BUILDPLATFORM golang:alpine AS build
RUN apk add --no-cache ca-certificates go nodejs rust cargo
ARG TARGETPLATFORM
ARG BUILDPLATFORM