Skip to content
Snippets Groups Projects
Commit a939520f authored by Jakob Probst's avatar Jakob Probst
Browse files

example app

parents
Branches main
No related tags found
No related merge requests found
Pipeline #267544 passed
stages:
- build
include:
- component: $CI_SERVER_FQDN/its/templates-and-utilities/gitlab-ci-components/build-container-image/build-container-image@1
inputs:
job-name: build example-app
containerfile: $CI_PROJECT_DIR/Containerfile
context: $CI_PROJECT_DIR
image: $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
\ No newline at end of file
FROM docker.io/golang:latest as builder
RUN CGO_ENABLED=0 go install github.com/dexidp/dex/examples/example-app@latest
FROM docker.io/alpine:latest
COPY --from=builder /go/bin/example-app /usr/local/bin/example-app
CMD [ "example-app" ]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment