Skip to content

Commit

Permalink
build: address FROM/as casing warning
Browse files Browse the repository at this point in the history
GitHub Actions report the following warning:

> The 'as' keyword should match the case of the 'from' keyword
> FromAsCasing: 'as' and 'FROM' keywords' casing do not match

All other container build commands are CAPITALIZED, changing 'as' to 'AS'
matches it now.

See-also: https://docs.docker.com/go/dockerfile/rule/from-as-casing/
Signed-off-by: Niels de Vos <[email protected]>
  • Loading branch information
nixpanic authored and mergify[bot] committed Aug 29, 2024
1 parent 3da7113 commit 48f0e10
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build the manager binary
FROM golang:1.22 as builder
FROM golang:1.22 AS builder

# Copy the contents of the repository
COPY . /workspace/go/src/github.com/csi-addons/kubernetes-csi-addons
Expand Down
2 changes: 1 addition & 1 deletion build/Containerfile.sidecar
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build the sidecar binary
FROM golang:1.22 as builder
FROM golang:1.22 AS builder

# Copy the contents of the repository
COPY . /workspace/go/src/github.com/csi-addons/kubernetes-csi-addons
Expand Down

0 comments on commit 48f0e10

Please sign in to comment.