Skip to content

Commit

Permalink
Try setting chmod
Browse files Browse the repository at this point in the history
  • Loading branch information
pearj committed Dec 1, 2021
1 parent 87f7892 commit b1ab7dc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,12 @@ jobs:
env:
VERSION: ${{ steps.get_version.outputs.VERSION }}
BUILT_BINARY: manager-${{ steps.get_version.outputs.VERSION }}-linux-amd64
DOCKER_BUILDKIT: 1
with:
name: pearj/adcs-issuer
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
buildargs: VERSION,BUILD_BINARY
buildargs: BUILT_BINARY
dockerfile: ci.Dockerfile
tags: "latest,${{ env.VERSION }}"
4 changes: 3 additions & 1 deletion ci.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# syntax=docker/dockerfile:1.3

# Use distroless as minimal base image to package the manager binary
# Refer to https://github.com/GoogleContainerTools/distroless for more details
FROM gcr.io/distroless/static:nonroot
WORKDIR /
ARG BUILT_BINARY
COPY ${BUILT_BINARY} /manager
COPY --chmod=555 ${BUILT_BINARY} /manager
USER nonroot:nonroot

ENTRYPOINT ["/manager"]

0 comments on commit b1ab7dc

Please sign in to comment.