fix from->FROM/as->AS casing
This commit is contained in:
parent
8107c1581e
commit
8b37ec90ed
26 changed files with 26 additions and 26 deletions
|
@ -27,7 +27,7 @@ RUN --network=none <<-EOF
|
|||
make -j "$(nproc)"
|
||||
EOF
|
||||
|
||||
from build as install
|
||||
FROM build AS install
|
||||
RUN --network=none make DESTDIR=/rootfs install
|
||||
|
||||
FROM stagex/filesystem AS package
|
||||
|
|
|
@ -25,7 +25,7 @@ RUN --network=none <<-EOF
|
|||
make -j "$(nproc)"
|
||||
EOF
|
||||
|
||||
from build as install
|
||||
FROM build AS install
|
||||
RUN --network=none make DESTDIR=/rootfs install
|
||||
|
||||
FROM stagex/filesystem AS package
|
||||
|
|
|
@ -28,7 +28,7 @@ RUN --network=none <<-EOF
|
|||
make -j1 MAKEINFO=false
|
||||
EOF
|
||||
|
||||
from build as install
|
||||
FROM build AS install
|
||||
RUN --network=none make DESTDIR=/rootfs install
|
||||
|
||||
FROM stagex/filesystem AS package
|
||||
|
|
|
@ -26,7 +26,7 @@ ENV GOFLAGS=-trimpath
|
|||
RUN mkdir -p ${GOPATH}
|
||||
RUN go build -o bin/buf ./cmd/buf
|
||||
|
||||
from build as install
|
||||
FROM build AS install
|
||||
RUN <<-EOF
|
||||
mkdir -p /rootfs/usr/bin/
|
||||
cp bin/buf /rootfs/usr/bin/
|
||||
|
|
|
@ -17,7 +17,7 @@ WORKDIR flashtools-${VERSION}
|
|||
FROM fetch AS build
|
||||
RUN --network=none make all
|
||||
|
||||
from build as install
|
||||
FROM build AS install
|
||||
RUN <<-EOF
|
||||
mkdir -p /rootfs/usr/bin/
|
||||
install -D -m 0755 flashtool /rootfs/usr/bin/
|
||||
|
|
|
@ -27,7 +27,7 @@ RUN <<-EOF
|
|||
make -j "$(nproc)"
|
||||
EOF
|
||||
|
||||
from build as install
|
||||
FROM build AS install
|
||||
RUN --network=none make DESTDIR=/rootfs install
|
||||
|
||||
FROM stagex/filesystem AS package
|
||||
|
|
|
@ -25,7 +25,7 @@ ENV GOHOSTARCH=amd64
|
|||
RUN mkdir -p ${GOPATH}
|
||||
RUN go build -o bin/go-md2man
|
||||
|
||||
from build as install
|
||||
FROM build AS install
|
||||
RUN <<-EOF
|
||||
mkdir -p /rootfs/usr/bin/
|
||||
cp bin/go-md2man /rootfs/usr/bin/
|
||||
|
|
|
@ -25,7 +25,7 @@ RUN go get ./...
|
|||
FROM fetch AS build
|
||||
RUN --network=none go build -trimpath -v ./cmd/grpcurl
|
||||
|
||||
from build as install
|
||||
FROM build AS install
|
||||
RUN <<-EOF
|
||||
set -eu
|
||||
mkdir -p /rootfs/usr/bin/
|
||||
|
|
|
@ -25,7 +25,7 @@ RUN go get ./...
|
|||
FROM fetch AS build
|
||||
RUN --network=none go build -v -trimpath ./cmd/helm
|
||||
|
||||
from build as install
|
||||
FROM build AS install
|
||||
RUN <<-EOF
|
||||
set -eu
|
||||
mkdir -p /rootfs/usr/bin/
|
||||
|
|
|
@ -25,7 +25,7 @@ RUN go get ./...
|
|||
FROM fetch AS build
|
||||
RUN --network=none go build -trimpath -o k9s -v main.go
|
||||
|
||||
from build as install
|
||||
FROM build AS install
|
||||
RUN <<-EOF
|
||||
set -eu
|
||||
mkdir -p /rootfs/usr/bin/
|
||||
|
|
|
@ -29,7 +29,7 @@ RUN --network=none \
|
|||
-trimpath \
|
||||
-ldflags "-s -w -X main.version=${VERSION} -buildid="
|
||||
|
||||
from build as install
|
||||
FROM build AS install
|
||||
RUN <<-EOF
|
||||
set -eux
|
||||
mkdir -p /rootfs/usr/lib/kustomize/plugins/viduct.ai/v1/ksops
|
||||
|
|
|
@ -25,7 +25,7 @@ RUN go get ./...
|
|||
FROM fetch AS build
|
||||
RUN --network=none go build -o bin/ -trimpath -v ./...
|
||||
|
||||
from build as install
|
||||
FROM build AS install
|
||||
RUN <<-EOF
|
||||
set -eu
|
||||
mkdir -p /rootfs/usr/bin/
|
||||
|
|
|
@ -24,7 +24,7 @@ RUN GOPATH="/kubernetes-${VERSION}" go mod download
|
|||
FROM fetch AS build
|
||||
RUN --network=none go build -trimpath -v k8s.io/kubernetes/cmd/kubectl
|
||||
|
||||
from build as install
|
||||
FROM build AS install
|
||||
RUN <<-EOF
|
||||
set -eu
|
||||
mkdir -p /rootfs/usr/bin/
|
||||
|
|
|
@ -25,7 +25,7 @@ RUN go get ./...
|
|||
FROM fetch AS build
|
||||
RUN --network=none go build -trimpath -v
|
||||
|
||||
from build as install
|
||||
FROM build AS install
|
||||
RUN <<-EOF
|
||||
set -eu
|
||||
mkdir -p /rootfs/usr/lib/kustomize/plugins/viduct.ai/v1/ksops
|
||||
|
|
|
@ -25,7 +25,7 @@ RUN go get ./...
|
|||
FROM fetch AS build
|
||||
RUN --network=none go build -v -trimpath
|
||||
|
||||
from build as install
|
||||
FROM build AS install
|
||||
RUN <<-EOF
|
||||
set -eu
|
||||
mkdir -p /rootfs/usr/bin/
|
||||
|
|
|
@ -25,7 +25,7 @@ ENV GOFLAGS=-trimpath
|
|||
RUN mkdir -p ${GOPATH}
|
||||
RUN go build -o bin/mockgen ./mockgen
|
||||
|
||||
from build as install
|
||||
FROM build AS install
|
||||
RUN <<-EOF
|
||||
set -eux
|
||||
mkdir -p /rootfs/usr/bin/
|
||||
|
|
|
@ -25,7 +25,7 @@ ENV GOFLAGS=-trimpath
|
|||
RUN mkdir -p ${GOPATH}
|
||||
RUN go build -o bin/protoc-gen-go-grpc ./
|
||||
|
||||
from build as install
|
||||
FROM build AS install
|
||||
RUN <<-EOF
|
||||
set -eux
|
||||
mkdir -p /rootfs/usr/bin/
|
||||
|
|
|
@ -25,7 +25,7 @@ ENV GOFLAGS=-trimpath
|
|||
RUN mkdir -p ${GOPATH}
|
||||
RUN go build -o bin/protoc-gen-go ./protoc-gen-go
|
||||
|
||||
from build as install
|
||||
FROM build AS install
|
||||
RUN <<-EOF
|
||||
set -eux
|
||||
mkdir -p /rootfs/usr/bin/
|
||||
|
|
|
@ -25,7 +25,7 @@ ENV GOFLAGS=-trimpath
|
|||
RUN mkdir -p ${GOPATH}
|
||||
RUN go build -o bin/protoc-gen-grpc-gateway ./protoc-gen-grpc-gateway
|
||||
|
||||
from build as install
|
||||
FROM build AS install
|
||||
RUN <<-EOF
|
||||
set -eux
|
||||
mkdir -p /rootfs/usr/bin/
|
||||
|
|
|
@ -25,7 +25,7 @@ ENV GOFLAGS=-trimpath
|
|||
RUN mkdir -p ${GOPATH}
|
||||
RUN go build -o bin/protoc-gen-openapiv2 ./protoc-gen-openapiv2
|
||||
|
||||
from build as install
|
||||
FROM build AS install
|
||||
RUN <<-EOF
|
||||
set -eux
|
||||
mkdir -p /rootfs/usr/bin/
|
||||
|
|
|
@ -25,7 +25,7 @@ ENV GOFLAGS=-trimpath
|
|||
RUN mkdir -p ${GOPATH}
|
||||
RUN go build -o bin/protoc-go-inject-tag .
|
||||
|
||||
from build as install
|
||||
FROM build AS install
|
||||
RUN <<-EOF
|
||||
set -eux
|
||||
mkdir -p /rootfs/usr/bin/
|
||||
|
|
|
@ -26,7 +26,7 @@ ENV GOFLAGS=-trimpath
|
|||
RUN mkdir -p ${GOPATH}
|
||||
RUN go build -o bin/sops ./cmd/sops
|
||||
|
||||
from build as install
|
||||
FROM build AS install
|
||||
RUN --network=none <<-EOF
|
||||
mkdir -p /rootfs/usr/bin/
|
||||
cp bin/sops /rootfs/usr/bin/
|
||||
|
|
|
@ -25,7 +25,7 @@ RUN go get ./...
|
|||
FROM fetch AS build
|
||||
RUN --network=none go build -v -trimpath ./cmd/talosctl
|
||||
|
||||
from build as install
|
||||
FROM build AS install
|
||||
RUN <<-EOF
|
||||
mkdir -p /rootfs/usr/bin/
|
||||
cp talosctl /rootfs/usr/bin/
|
||||
|
|
|
@ -25,7 +25,7 @@ RUN go get ./...
|
|||
FROM fetch AS build
|
||||
RUN --network=none go build -o out/tflint -v -trimpath
|
||||
|
||||
from build as install
|
||||
FROM build AS install
|
||||
RUN <<-EOF
|
||||
mkdir -p /rootfs/usr/bin/
|
||||
cp out/tflint /rootfs/usr/bin/
|
||||
|
|
|
@ -26,7 +26,7 @@ ENV GOFLAGS=-trimpath
|
|||
RUN mkdir -p ${GOPATH}
|
||||
RUN go build -o bin/tofu ./cmd/tofu
|
||||
|
||||
from build as install
|
||||
FROM build AS install
|
||||
RUN <<-EOF
|
||||
mkdir -p /rootfs/usr/bin/
|
||||
cp bin/tofu /rootfs/usr/bin/
|
||||
|
|
|
@ -25,7 +25,7 @@ RUN go get ./...
|
|||
FROM fetch AS build
|
||||
RUN --network=none go build -v -trimpath
|
||||
|
||||
from build as install
|
||||
FROM build AS install
|
||||
RUN <<-EOF
|
||||
mkdir -p /rootfs/usr/bin/
|
||||
cp yq /rootfs/usr/bin/
|
||||
|
|
Loading…
Reference in a new issue