Change Github workflow to deploy docker image

This commit is contained in:
2023-09-02 14:03:39 +02:00
parent 3936666ecc
commit 925f4c3f5a
3 changed files with 38 additions and 17 deletions

View File

@ -21,6 +21,10 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o app -ldflags '-w -s'
FROM scratch
LABEL org.opencontainers.image.source = "https://github.com/pcvolkmer/idicon"
LABEL org.opencontainers.image.licenses = "MIT"
LABEL org.opencontainers.image.description = "Simple identicon service"
COPY --from=build-env /etc/passwd /etc/passwd
COPY --from=build-env /etc/group /etc/group
COPY --from=build-env /tmp/build/app /idicon