Skip to content

Commit

Permalink
Merge pull request telekom#10 from y-eight/ci/gitlab
Browse files Browse the repository at this point in the history
Ci/gitlab
  • Loading branch information
y-eight authored Mar 27, 2023
2 parents 13a0841 + 0c901d6 commit 2e20db0
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
stages:
- test
- build
- scan
- push
- sign

include:
- project: caas/cicd_templates
file: ci_general.yml
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM cgr.dev/chainguard/go:latest as gobuild
WORKDIR /app
ADD . .
RUN go mod download
RUN CGO_ENABLED=0 go build -ldflags "-s -w" -o canary .

FROM scratch
COPY --from=gobuild /app/canary /canary
COPY --from=gobuild /etc/passwd /etc/passwd
USER 65532
ENTRYPOINT ["/canary"]

0 comments on commit 2e20db0

Please sign in to comment.