mirror of
https://github.com/docker/build-push-action.git
synced 2026-01-14 16:23:06 +08:00
Compare commits
1 Commits
656781bc16
...
16433e25a2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
16433e25a2 |
16
.github/workflows/buildkit-5561.yml
vendored
Normal file
16
.github/workflows/buildkit-5561.yml
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
name: buildkit-5561
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
-
|
||||
name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
@ -1,6 +1,5 @@
|
||||
# syntax=docker/dockerfile:1
|
||||
|
||||
FROM --platform=$BUILDPLATFORM alpine AS build
|
||||
FROM --platform=$BUILDPLATFORM golang:alpine AS build
|
||||
ARG TARGETPLATFORM
|
||||
ARG BUILDPLATFORM
|
||||
RUN echo "I am running on $BUILDPLATFORM, building for $TARGETPLATFORM" > /log
|
||||
@ -13,7 +12,7 @@ RUN apk --update --no-cache add \
|
||||
&& rm -rf /tmp/* /var/cache/apk/*
|
||||
|
||||
USER buildx
|
||||
RUN sudo chown buildx: /log
|
||||
RUN sudo chown buildx. /log
|
||||
USER root
|
||||
|
||||
FROM alpine
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user