From 45f73bd907bfd111a54ad9e448e8eb61a584447e Mon Sep 17 00:00:00 2001 From: Fedor Korotkov Date: Tue, 22 Sep 2020 09:34:32 -0400 Subject: [PATCH] Publish Docker Image (#97) * Publish Docker Image * Missing new lines * Removed GitHub Action Config * Revert "Removed GitHub Action Config" This reverts commit e6976a6d * Removed GitHub Action --- Dockerfile | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..9df13a12 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM goreleaser/goreleaser:latest as builder + +WORKDIR /build +ADD . /build + +RUN goreleaser --skip-publish + +FROM alpine:latest +LABEL org.opencontainers.image.source=https://github.com/cirruslabs/cirrus-cli/ + +COPY --from=builder /build/dist/cirrus_linux_amd64/cirrus /usr/local/bin/ +ENTRYPOINT ["/usr/local/bin/cirrus"]