Skip to content

Commit

Permalink
Make SonarCloud happy
Browse files Browse the repository at this point in the history
  • Loading branch information
tlbdk committed May 25, 2023
1 parent 9669599 commit 52d69a9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ARG WRAP_COMMAND
ARG SSH_KEY_PATH

# Build image
FROM gcr.io/cloud-builders/go:latest as builder
FROM gcr.io/cloud-builders/go:latest AS builder

ARG VERSION="1.0-dev"

Expand All @@ -25,7 +25,7 @@ RUN echo nobody:x:65534:65534:nobody:/: > password.minimal
#
# Auth-wrapper server image
#
FROM scratch as main
FROM scratch AS main

ARG SSH_KEY_PATH

Expand All @@ -39,7 +39,7 @@ ENTRYPOINT ["/opt/bin/auth-wrapper"]
#
# Authwrapped git with KMS keys
#
FROM gcr.io/cloud-builders/git as git-kms
FROM gcr.io/cloud-builders/git AS git-kms

ARG SSH_KEY_PATH

Expand All @@ -56,7 +56,7 @@ ENTRYPOINT ["/opt/bin/git"]
#
# Authwrapped docker with KMS keys
#
FROM gcr.io/cloud-builders/docker as docker-kms
FROM gcr.io/cloud-builders/docker AS docker-kms

ARG SSH_KEY_PATH

Expand All @@ -76,7 +76,7 @@ ENTRYPOINT ["/opt/bin/docker"]
#
# Authwrapped git with local keys
#
FROM gcr.io/cloud-builders/git as git-local
FROM gcr.io/cloud-builders/git AS git-local

COPY --from=builder /app/auth-wrapper /opt/bin/auth-wrapper
RUN ln -s /opt/bin/auth-wrapper /opt/bin/git
Expand Down

0 comments on commit 52d69a9

Please sign in to comment.