Skip to content

Commit c38dcbf

Browse files
authored
Merge pull request #2 from RabotaRu/release/0.1.1
Release/0.1.1
2 parents 3da6f8d + f44fd95 commit c38dcbf

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

.goreleaser.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,16 +57,16 @@ changelog:
5757
dockers:
5858
- dockerfile: Dockerfile
5959
image_templates:
60-
- "ghcr.io/rabotaru/hpmc:{{ .Version }}"
61-
- "ghcr.io/rabotaru/hpmc:latest"
60+
- "ghcr.io/rabotaru/http-proxy-metrics-collector:{{ .Version }}"
61+
- "ghcr.io/rabotaru/http-proxy-metrics-collector:latest"
6262

6363
build_flag_templates:
6464
- "--label=org.opencontainers.image.created={{ .Date }}"
6565
- "--label=org.opencontainers.image.title={{ .ProjectName }}"
6666
- "--label=org.opencontainers.image.revision={{ .FullCommit }}"
6767
- "--label=org.opencontainers.image.version={{ .Version }}"
6868
- "--label=org.opencontainers.image.licenses=MIT"
69-
- "--label=org.opencontainers.image.source=https://github.com/rabotaru/hpmc"
69+
- "--label=org.opencontainers.image.source=https://github.com/rabotaru/http-proxy-metrics-collector"
7070
- "--platform=linux/amd64"
7171
- "--target=goreleaser"
7272
- "--pull"

Dockerfile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ARG ALPINE_VERSION=3.16
44
FROM golang:${GOLANG_VERSION}-alpine${ALPINE_VERSION} AS builder
55
ENV GO111MODULE=on
66
ENV CGO_ENABLED=0
7-
ENV PROJECT=hpmc
7+
ENV PROJECT=http-proxy-metrics-collector
88

99
WORKDIR ${PROJECT}
1010

@@ -18,26 +18,26 @@ RUN go build -a -o /${PROJECT} .
1818
### Base image with shell
1919
FROM alpine:${ALPINE_VERSION} as base-release
2020
RUN apk --update --no-cache add ca-certificates && update-ca-certificates
21-
ENTRYPOINT ["/bin/hpmc"]
21+
ENTRYPOINT ["/bin/http-proxy-metrics-collector"]
2222

2323
### Build with goreleaser
2424
FROM base-release as goreleaser
25-
COPY hpmc /bin/
25+
COPY http-proxy-metrics-collector /bin/
2626

2727
### Build in docker
2828
FROM base-release as release
29-
COPY --from=builder /hpmc /bin/
29+
COPY --from=builder /http-proxy-metrics-collector /bin/
3030

3131
### Scratch with build in docker
3232
FROM scratch as scratch-release
3333
COPY --from=base-release /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
34-
COPY --from=builder /hpmc /bin/
35-
ENTRYPOINT ["/bin/hpmc"]
34+
COPY --from=builder /http-proxy-metrics-collector /bin/
35+
ENTRYPOINT ["/bin/http-proxy-metrics-collector"]
3636
USER 65534
3737

3838
### Scratch with goreleaser
3939
FROM scratch as scratch-goreleaser
4040
COPY --from=base-release /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
41-
COPY hpmc /bin/
42-
ENTRYPOINT ["/bin/hpmc"]
41+
COPY http-proxy-metrics-collector /bin/
42+
ENTRYPOINT ["/bin/http-proxy-metrics-collector"]
4343
USER 65534

0 commit comments

Comments
 (0)