Skip to content

Commit 3f954e5

Browse files
vbvictormahesh-attarde
authored andcommitted
[GitHub][docker] Fix 'FromAsCasing' violation in CI dockerfile (llvm#161017)
Fixes https://docs.docker.com/reference/build-checks/from-as-casing/ which also gives warning when building container from command line: ``` => WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 1) => WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 4) => WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 40) => WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 100) ```
1 parent 1d62f24 commit 3f954e5

File tree

1 file changed

+4
-4
lines changed
  • .github/workflows/containers/github-action-ci

1 file changed

+4
-4
lines changed

.github/workflows/containers/github-action-ci/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
FROM docker.io/library/ubuntu:24.04 as base
1+
FROM docker.io/library/ubuntu:24.04 AS base
22
ENV LLVM_SYSROOT=/opt/llvm
33

4-
FROM base as stage1-toolchain
4+
FROM base AS stage1-toolchain
55
ENV LLVM_VERSION=21.1.1
66

77
RUN apt-get update && \
@@ -37,7 +37,7 @@ RUN cmake -B ./build -G Ninja ./llvm \
3737

3838
RUN ninja -C ./build stage2-clang-bolt stage2-install-distribution && ninja -C ./build install-distribution
3939

40-
FROM base as ci-container
40+
FROM base AS ci-container
4141

4242
COPY --from=stage1-toolchain $LLVM_SYSROOT $LLVM_SYSROOT
4343

@@ -97,7 +97,7 @@ RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
9797
USER gha
9898
WORKDIR /home/gha
9999

100-
FROM ci-container as ci-container-agent
100+
FROM ci-container AS ci-container-agent
101101

102102
ENV GITHUB_RUNNER_VERSION=2.328.0
103103

0 commit comments

Comments
 (0)