Skip to content
This repository was archived by the owner on Apr 4, 2024. It is now read-only.

Commit a1f6460

Browse files
committed
fix: goreleaser issue about build extend docker images
1 parent fb47525 commit a1f6460

File tree

4 files changed

+16
-26
lines changed

4 files changed

+16
-26
lines changed

.goreleaser.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ dockers:
100100
- image_templates:
101101
- "soulteary/webhook:linux-amd64-extend-{{ .Tag }}"
102102
- "soulteary/webhook:linux-amd64-extend"
103-
dockerfile: docker/Dockerfile.extend
103+
dockerfile: docker/Dockerfile.gorelease-extend
104104
use: buildx
105105
goarch: amd64
106106
build_flag_templates:
@@ -118,7 +118,7 @@ dockers:
118118
- image_templates:
119119
- "soulteary/webhook:linux-arm64-extend-{{ .Tag }}"
120120
- "soulteary/webhook:linux-arm64-extend"
121-
dockerfile: docker/Dockerfile.extend
121+
dockerfile: docker/Dockerfile.gorelease-extend
122122
use: buildx
123123
goos: linux
124124
goarch: arm64
@@ -138,7 +138,7 @@ dockers:
138138
- image_templates:
139139
- "soulteary/webhook:linux-armv7-extend-{{ .Tag }}"
140140
- "soulteary/webhook:linux-armv7-extend"
141-
dockerfile: docker/Dockerfile.extend
141+
dockerfile: docker/Dockerfile.gorelease-extend
142142
use: buildx
143143
goos: linux
144144
goarch: arm
@@ -158,7 +158,7 @@ dockers:
158158
- image_templates:
159159
- "soulteary/webhook:linux-armv6-extend-{{ .Tag }}"
160160
- "soulteary/webhook:linux-armv6-extend"
161-
dockerfile: docker/Dockerfile.extend
161+
dockerfile: docker/Dockerfile.gorelease-extend
162162
use: buildx
163163
goos: linux
164164
goarch: arm

docker/Dockerfile.extend

Lines changed: 0 additions & 18 deletions
This file was deleted.

docker/Dockerfile.gorelease

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
FROM alpine:3.19.0 as builder
2-
RUN apk --update add ca-certificates upx
3-
RUN upx -9 -o webhook.minify webhook && \
4-
chmod +x webhook.minify
2+
RUN apk --update add ca-certificates
53

64
FROM scratch
75
LABEL maintainer "soulteary <[email protected]>"
86
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
9-
COPY webhook.minify /usr/bin/webhook
7+
COPY webhook /usr/bin/webhook
108
EXPOSE 8345/tcp
119
CMD ["/usr/bin/webhook"]

docker/Dockerfile.gorelease-extend

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM alpine:3.19.0 as builder
2+
RUN apk --update add ca-certificates
3+
4+
FROM alpine:3.19.0
5+
LABEL maintainer "soulteary <[email protected]>"
6+
RUN apk --update add bash curl wget jq yq
7+
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
8+
COPY webhook /usr/bin/webhook
9+
EXPOSE 8345/tcp
10+
CMD ["/usr/bin/webhook"]

0 commit comments

Comments
 (0)