Skip to content

Commit 5f6015a

Browse files
committed
Update goreleaser
Update the `.goreleaser.yml` file to support latest/current goreleaser version (v0.148.0 as of today), in preparation for a switch from Travis over Github Actions. While at it, also update e2e tests to create the test deployment using `create deployment`, since `kubectl run` create unmanaged pods with recent kubectl versions.
1 parent 2a0233b commit 5f6015a

File tree

4 files changed

+6
-9
lines changed

4 files changed

+6
-9
lines changed

.goreleaser.yml

+3-6
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ release:
2424
# don't autopublish
2525
draft: true
2626

27-
sign:
28-
artifacts: checksum
29-
3027
archives:
3128
- id: katafygio
3229
format: binary
@@ -47,7 +44,7 @@ dockers:
4744

4845
nfpms:
4946
-
50-
name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Arch }}"
47+
file_name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Arch }}"
5148
homepage: https://github.com/bpineau/katafygio
5249
description: Discover and continuously backup Kubernetes objets as yaml files in git
5350
maintainer: Benjamin Pineau <[email protected]>
@@ -68,8 +65,8 @@ nfpms:
6865
replacements:
6966
amd64: x86_64
7067
386: i686
71-
name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
68+
file_name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
7269
deb:
7370
replacements:
7471
386: i386
75-
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
72+
file_name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ WORKDIR /go/src/github.com/bpineau/katafygio
33
COPY . .
44
RUN make build
55

6-
FROM alpine:3.10
6+
FROM alpine:3.12
77
RUN apk upgrade --no-cache && \
88
apk --no-cache add ca-certificates git openssh-client tini
99
RUN install -d -o nobody -g nobody /var/lib/katafygio/data

assets/Dockerfile.goreleaser

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM alpine:3.10
1+
FROM alpine:3.12
22
RUN apk upgrade --no-cache && \
33
apk --no-cache add ca-certificates git openssh-client tini
44
RUN install -d -o nobody -g nobody /var/lib/katafygio/data

assets/e2e_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ type dumpStep struct {
3434

3535
var testsTable = []dumpStep{
3636
{"kubectl create ns kf-e2e-test-1", "kubectl delete ns kf-e2e-test-1", "namespace-kf-e2e-test-1.yaml", true},
37-
{"kubectl run kf-e2e-test-2 --image=gcr.io/google_containers/pause-amd64:3.0", "kubectl delete deploy kf-e2e-test-2", "default/deployment-kf-e2e-test-2.yaml", true},
37+
{"kubectl create deployment kf-e2e-test-2 --image=gcr.io/google_containers/pause-amd64:3.0", "kubectl delete deploy kf-e2e-test-2", "default/deployment-kf-e2e-test-2.yaml", true},
3838
{"kubectl expose deployment kf-e2e-test-2 --port=80 --target-port=8000 --name=kf-e2e-test-3", "kubectl delete svc kf-e2e-test-3", "default/service-kf-e2e-test-3.yaml", true},
3939
{"kubectl delete service kf-e2e-test-3", "", "default/service-kf-e2e-test-3.yaml", false},
4040
{"kubectl delete namespace kf-e2e-test-1", "", "namespace-kf-e2e-test-1.yaml", false},

0 commit comments

Comments
 (0)