Commit b36d065e authored by zhiqiangxu's avatar zhiqiangxu Committed by GitHub

fix: FromAsCasing: 'as' and 'FROM' keywords' casing do not match (#13542)

parent 440086c4
FROM golang:1.22.7-alpine3.20 as builder FROM golang:1.22.7-alpine3.20 AS builder
RUN apk add --no-cache make bash RUN apk add --no-cache make bash
...@@ -25,7 +25,7 @@ ARG TARGETOS TARGETARCH ...@@ -25,7 +25,7 @@ ARG TARGETOS TARGETARCH
FROM --platform=$BUILDPLATFORM us-docker.pkg.dev/oplabs-tools-artifacts/images/cannon:v1.1.0-alpha.4 AS cannon-v2 FROM --platform=$BUILDPLATFORM us-docker.pkg.dev/oplabs-tools-artifacts/images/cannon:v1.1.0-alpha.4 AS cannon-v2
FROM --platform=$BUILDPLATFORM builder as cannon-verify FROM --platform=$BUILDPLATFORM builder AS cannon-verify
COPY --from=cannon-v2 /usr/local/bin/cannon /usr/local/bin/cannon-v2 COPY --from=cannon-v2 /usr/local/bin/cannon /usr/local/bin/cannon-v2
# verify the latest singlethreaded VM behavior against cannon-v2 # verify the latest singlethreaded VM behavior against cannon-v2
RUN cd cannon && make diff-singlethreaded-2-cannon -e OTHER_CANNON=/usr/local/bin/cannon-v2 RUN cd cannon && make diff-singlethreaded-2-cannon -e OTHER_CANNON=/usr/local/bin/cannon-v2
......
ARG OP_STACK_GO_BUILDER=us-docker.pkg.dev/oplabs-tools-artifacts/images/op-stack-go:latest ARG OP_STACK_GO_BUILDER=us-docker.pkg.dev/oplabs-tools-artifacts/images/op-stack-go:latest
FROM $OP_STACK_GO_BUILDER as builder FROM $OP_STACK_GO_BUILDER AS builder
# See "make golang-docker" and /ops/docker/op-stack-go # See "make golang-docker" and /ops/docker/op-stack-go
FROM alpine:3.20 FROM alpine:3.20
......
ARG OP_STACK_GO_BUILDER=us-docker.pkg.dev/oplabs-tools-artifacts/images/op-stack-go:latest ARG OP_STACK_GO_BUILDER=us-docker.pkg.dev/oplabs-tools-artifacts/images/op-stack-go:latest
FROM $OP_STACK_GO_BUILDER as builder FROM $OP_STACK_GO_BUILDER AS builder
# See "make golang-docker" and /ops/docker/op-stack-go # See "make golang-docker" and /ops/docker/op-stack-go
FROM alpine:3.20 FROM alpine:3.20
......
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
# This Dockerfile builds all the dependencies needed by the smart-contracts, excluding Go and Python. # This Dockerfile builds all the dependencies needed by the smart-contracts, excluding Go and Python.
FROM --platform=linux/amd64 us-docker.pkg.dev/oplabs-tools-artifacts/images/ci-builder:latest as foundry FROM --platform=linux/amd64 us-docker.pkg.dev/oplabs-tools-artifacts/images/ci-builder:latest AS foundry
FROM --platform=linux/amd64 debian:bookworm-20240812-slim as base FROM --platform=linux/amd64 debian:bookworm-20240812-slim AS base
# Base: install deps # Base: install deps
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
......
...@@ -81,7 +81,7 @@ ENTRYPOINT ["/bin/bash", "-c"] ...@@ -81,7 +81,7 @@ ENTRYPOINT ["/bin/bash", "-c"]
# CI BUILDER (RUST) # # CI BUILDER (RUST) #
############################################################################### ###############################################################################
FROM base-builder as rust-builder FROM base-builder AS rust-builder
# Install clang & lld # Install clang & lld
RUN apt-get update && apt-get install -y clang lld RUN apt-get update && apt-get install -y clang lld
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment