mirror of
https://github.com/docker/build-push-action.git
synced 2025-12-17 14:58:57 +08:00
Compare commits
2 Commits
fe8520559f
...
f7b3516b21
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f7b3516b21 | ||
|
|
a5b2b9c58b |
7
.github/workflows/.e2e-run.yml
vendored
7
.github/workflows/.e2e-run.yml
vendored
@ -50,7 +50,7 @@ jobs:
|
|||||||
buildkit_image: moby/buildkit:buildx-stable-1
|
buildkit_image: moby/buildkit:buildx-stable-1
|
||||||
-
|
-
|
||||||
buildx_version: https://github.com/docker/buildx.git#master
|
buildx_version: https://github.com/docker/buildx.git#master
|
||||||
buildkit_image: crazymax/buildkit:s3patch
|
buildkit_image: moby/buildkit:master
|
||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: Checkout
|
name: Checkout
|
||||||
@ -76,7 +76,7 @@ jobs:
|
|||||||
} else if (inpCache === 's3') {
|
} else if (inpCache === 's3') {
|
||||||
const cacheName = inpSlug.replace(/[^a-zA-Z0-9]/g, '-').toLowerCase();
|
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_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`);
|
core.exportVariable('CACHE_TO', `type=s3,region=us-east-2,bucket=buildkit-s3-cache-test,name=${cacheName}`);
|
||||||
}
|
}
|
||||||
-
|
-
|
||||||
name: Set up BuildKit config
|
name: Set up BuildKit config
|
||||||
@ -138,8 +138,7 @@ jobs:
|
|||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
context: ./test
|
context: ./test
|
||||||
file: ./test/multi.Dockerfile
|
file: ./test/big.Dockerfile
|
||||||
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/ppc64le,linux/s390x
|
|
||||||
push: ${{ github.event_name != 'pull_request' }}
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
|||||||
3
test/big.Dockerfile
Normal file
3
test/big.Dockerfile
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
FROM busybox
|
||||||
|
RUN dd if=/dev/zero of=/output.dat bs=648M count=1
|
||||||
|
RUN uname -a
|
||||||
@ -1,6 +1,5 @@
|
|||||||
# syntax=docker/dockerfile:1
|
# syntax=docker/dockerfile:1
|
||||||
FROM --platform=$BUILDPLATFORM golang:alpine AS build
|
FROM --platform=$BUILDPLATFORM golang:alpine AS build
|
||||||
RUN apk add --no-cache ca-certificates go nodejs rust cargo
|
|
||||||
|
|
||||||
ARG TARGETPLATFORM
|
ARG TARGETPLATFORM
|
||||||
ARG BUILDPLATFORM
|
ARG BUILDPLATFORM
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user