Skip to content

Commit 4b93e19

Browse files
committed
build: revert back to old docker release config
1 parent 676359a commit 4b93e19

2 files changed

Lines changed: 97 additions & 22 deletions

File tree

.goreleaser.yml

Lines changed: 96 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -33,24 +33,100 @@ changelog:
3333
- "^docs:"
3434
- "^test:"
3535

36-
dockers_v2:
37-
- images:
38-
- "ghcr.io/jittering/{{ .ProjectName }}"
39-
tags:
40-
- "{{ .Version }}"
41-
- "{{ if not .IsSnapshot }}latest{{ end }}"
36+
# dockers_v2:
37+
# - images:
38+
# - "ghcr.io/jittering/{{ .ProjectName }}"
39+
# tags:
40+
# - "{{ .Version }}"
41+
# - "{{ if not .IsSnapshot }}latest{{ end }}"
42+
# dockerfile: Dockerfile
43+
# platforms:
44+
# - linux/amd64
45+
# - linux/arm/v6
46+
# - linux/arm/v7
47+
# - linux/arm64
48+
# labels:
49+
# "org.opencontainers.image.title": "{{ .ProjectName }}"
50+
# "org.opencontainers.image.description": "{{ .ProjectName }}"
51+
# "org.opencontainers.image.url": "https://github.com/jittering/{{ .ProjectName }}"
52+
# "org.opencontainers.image.source": "https://github.com/jittering/{{ .ProjectName }}"
53+
# "org.opencontainers.image.version": "{{ .Version }}"
54+
# "org.opencontainers.image.created": "{{ .Date }}"
55+
# "org.opencontainers.image.revision": "{{ .FullCommit }}"
56+
# "org.opencontainers.image.licenses": "MIT"
57+
58+
dockers:
59+
- image_templates:
60+
["ghcr.io/jittering/{{ .ProjectName }}:{{ .Version }}-amd64"]
61+
dockerfile: Dockerfile
62+
use: buildx
63+
build_flag_templates:
64+
- --platform=linux/amd64
65+
- --label=org.opencontainers.image.title={{ .ProjectName }}
66+
- --label=org.opencontainers.image.description={{ .ProjectName }}
67+
- --label=org.opencontainers.image.url=https://github.com/jittering/{{ .ProjectName }}
68+
- --label=org.opencontainers.image.source=https://github.com/jittering/{{ .ProjectName }}
69+
- --label=org.opencontainers.image.version={{ .Version }}
70+
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
71+
- --label=org.opencontainers.image.revision={{ .FullCommit }}
72+
- --label=org.opencontainers.image.licenses=MIT
73+
- image_templates:
74+
["ghcr.io/jittering/{{ .ProjectName }}:{{ .Version }}-armv6"]
75+
goarch: arm
76+
goarm: "6"
77+
dockerfile: Dockerfile
78+
use: buildx
79+
build_flag_templates:
80+
- --platform=linux/arm/v6
81+
- --label=org.opencontainers.image.title={{ .ProjectName }}
82+
- --label=org.opencontainers.image.description={{ .ProjectName }}
83+
- --label=org.opencontainers.image.url=https://github.com/jittering/{{ .ProjectName }}
84+
- --label=org.opencontainers.image.source=https://github.com/jittering/{{ .ProjectName }}
85+
- --label=org.opencontainers.image.version={{ .Version }}
86+
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
87+
- --label=org.opencontainers.image.revision={{ .FullCommit }}
88+
- --label=org.opencontainers.image.licenses=MIT
89+
- image_templates:
90+
["ghcr.io/jittering/{{ .ProjectName }}:{{ .Version }}-armv7"]
91+
goarch: arm
92+
goarm: "7"
93+
dockerfile: Dockerfile
94+
use: buildx
95+
build_flag_templates:
96+
- --platform=linux/arm/v7
97+
- --label=org.opencontainers.image.title={{ .ProjectName }}
98+
- --label=org.opencontainers.image.description={{ .ProjectName }}
99+
- --label=org.opencontainers.image.url=https://github.com/jittering/{{ .ProjectName }}
100+
- --label=org.opencontainers.image.source=https://github.com/jittering/{{ .ProjectName }}
101+
- --label=org.opencontainers.image.version={{ .Version }}
102+
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
103+
- --label=org.opencontainers.image.revision={{ .FullCommit }}
104+
- --label=org.opencontainers.image.licenses=MIT
105+
- image_templates:
106+
["ghcr.io/jittering/{{ .ProjectName }}:{{ .Version }}-arm64v8"]
107+
goarch: arm64
42108
dockerfile: Dockerfile
43-
platforms:
44-
- linux/amd64
45-
- linux/arm/v6
46-
- linux/arm/v7
47-
- linux/arm64
48-
labels:
49-
"org.opencontainers.image.title": "{{ .ProjectName }}"
50-
"org.opencontainers.image.description": "{{ .ProjectName }}"
51-
"org.opencontainers.image.url": "https://github.com/jittering/{{ .ProjectName }}"
52-
"org.opencontainers.image.source": "https://github.com/jittering/{{ .ProjectName }}"
53-
"org.opencontainers.image.version": "{{ .Version }}"
54-
"org.opencontainers.image.created": "{{ .Date }}"
55-
"org.opencontainers.image.revision": "{{ .FullCommit }}"
56-
"org.opencontainers.image.licenses": "MIT"
109+
use: buildx
110+
build_flag_templates:
111+
- --platform=linux/arm64/v8
112+
- --label=org.opencontainers.image.title={{ .ProjectName }}
113+
- --label=org.opencontainers.image.description={{ .ProjectName }}
114+
- --label=org.opencontainers.image.url=https://github.com/jittering/{{ .ProjectName }}
115+
- --label=org.opencontainers.image.source=https://github.com/jittering/{{ .ProjectName }}
116+
- --label=org.opencontainers.image.version={{ .Version }}
117+
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
118+
- --label=org.opencontainers.image.revision={{ .FullCommit }}
119+
- --label=org.opencontainers.image.licenses=MIT
120+
docker_manifests:
121+
- name_template: ghcr.io/jittering/{{ .ProjectName }}:{{ .Version }}
122+
image_templates:
123+
- ghcr.io/jittering/{{ .ProjectName }}:{{ .Version }}-amd64
124+
- ghcr.io/jittering/{{ .ProjectName }}:{{ .Version }}-armv6
125+
- ghcr.io/jittering/{{ .ProjectName }}:{{ .Version }}-armv7
126+
- ghcr.io/jittering/{{ .ProjectName }}:{{ .Version }}-arm64v8
127+
- name_template: ghcr.io/jittering/{{ .ProjectName }}:latest
128+
image_templates:
129+
- ghcr.io/jittering/{{ .ProjectName }}:{{ .Version }}-amd64
130+
- ghcr.io/jittering/{{ .ProjectName }}:{{ .Version }}-armv6
131+
- ghcr.io/jittering/{{ .ProjectName }}:{{ .Version }}-armv7
132+
- ghcr.io/jittering/{{ .ProjectName }}:{{ .Version }}-arm64v8

Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
FROM scratch
22
ENTRYPOINT ["/traefik-kop"]
3-
ARG TARGETPLATFORM
4-
COPY $TARGETPLATFORM/traefik-kop /traefik-kop
3+
COPY traefik-kop /traefik-kop

0 commit comments

Comments
 (0)