From a10118f6bcb9fcf1138fea965588df60358e0754 Mon Sep 17 00:00:00 2001 From: Christian Hoffmeister Date: Tue, 16 Nov 2021 12:39:24 +0100 Subject: [PATCH] fix --- .dockerignore | 12 ------------ .goreleaser.yml | 13 ++++--------- Dockerfile | 1 + 3 files changed, 5 insertions(+), 21 deletions(-) delete mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore deleted file mode 100644 index 97504ad..0000000 --- a/.dockerignore +++ /dev/null @@ -1,12 +0,0 @@ -.git - -.dockerignore -.editorconfig -.gitignore -Dockerfile -LICENSE -Makefile -README.md - -build/ -coverage.out diff --git a/.goreleaser.yml b/.goreleaser.yml index 30e4166..694cd3a 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -2,10 +2,7 @@ # Make sure to check the documentation at https://goreleaser.com before: hooks: - # You may remove this if you don't use go modules. - go mod tidy - # you may remove this if you don't need go generate - - go generate ./... builds: - env: - CGO_ENABLED=0 @@ -24,15 +21,13 @@ archives: 386: i386 amd64: x86_64 dockers: - - - skip_push: false - image_templates: - - "ghcr.io/choffmeister/git-ops-update:{{ .Tag }}" - - "ghcr.io/choffmeister/git-ops-update:latest" + - image_templates: + - "ghcr.io/choffmeister/{{ .ProjectName }}:{{ .Tag }}" + - "ghcr.io/choffmeister/{{ .ProjectName }}:latest" checksum: name_template: 'checksums.txt' snapshot: - name_template: "{{ incpatch .Version }}-next" + name_template: "0.0.0-dev" changelog: sort: asc filters: diff --git a/Dockerfile b/Dockerfile index 0491542..a371f90 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,3 +5,4 @@ FROM scratch COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ ENTRYPOINT ["/bin/git-ops-update"] COPY git-ops-update /bin/git-ops-update +WORKDIR /workdir