From 427d813928a2a724c5a59fbc4d91cf13151b87d1 Mon Sep 17 00:00:00 2001 From: kenriortega Date: Sun, 7 Nov 2021 14:38:32 -0500 Subject: [PATCH] ci: add docker releaser section --- .goreleaser.yml | 13 +++++++++++++ Dockerfile.goreleaser | 5 +++++ 2 files changed, 18 insertions(+) create mode 100644 Dockerfile.goreleaser diff --git a/.goreleaser.yml b/.goreleaser.yml index 8f23e14..de1c6c6 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -55,6 +55,19 @@ checksum: name_template: 'checksums.txt' snapshot: name_template: "{{ incpatch .Version }}-next" +# For docker release +dockers: + - + image_templates: + - "kenriortega/ngonx:{{ .Tag }}" + - "kenriortega/ngonx:v{{ .Major }}" + - "kenriortega/ngonx:v{{ .Major }}.{{ .Minor }}" + - "kenriortega/ngonx:latest" + skip_push: true + + # Path to the Dockerfile (from the project root). + dockerfile: Dockerfile.goreleaser + use: docker changelog: sort: asc filters: diff --git a/Dockerfile.goreleaser b/Dockerfile.goreleaser new file mode 100644 index 0000000..73f757f --- /dev/null +++ b/Dockerfile.goreleaser @@ -0,0 +1,5 @@ +FROM alpine:latest +ENTRYPOINT ["/ngonxctl"] +COPY ngonxctl / +COPY ngonx.yaml ngonx.yaml +CMD ["proxy"] \ No newline at end of file