Skip to content

Commit 7cf4660

Browse files
authored
Merge pull request #2 from LinuxSuRen/fix/binary-name
fix: the binary file name is incorrect
2 parents 96ac921 + 59e7ea7 commit 7cf4660

File tree

3 files changed

+20
-9
lines changed

3 files changed

+20
-9
lines changed

.gitpod.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# This configuration file was automatically generated by Gitpod.
2+
# Please adjust to your needs (see https://www.gitpod.io/docs/introduction/learn-gitpod/gitpod-yaml)
3+
# and commit this file to your remote git repository to share the goodness with others.
4+
5+
# Learn more from ready-to-use templates: https://www.gitpod.io/docs/introduction/getting-started/quickstart
6+
7+
tasks:
8+
- init: go get && go build ./... && go test ./... && make
9+
command: go run .
10+
11+

.goreleaser.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ before:
77
builds:
88
- env:
99
- CGO_ENABLED=0
10-
id: atest-store-git
11-
binary: atest-store-git
10+
id: atest-store-orm
11+
binary: atest-store-orm
1212
goos:
1313
- linux
1414
- windows
@@ -19,7 +19,7 @@ builds:
1919
archives:
2020
- name_template: "{{ .Binary }}-{{ .Os }}-{{ .Arch }}"
2121
builds:
22-
- atest-store-git
22+
- atest-store-orm
2323
format_overrides:
2424
- goos: windows
2525
format: zip

Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
FROM golang:1.20 AS builder
22

3-
LABEL org.opencontainers.image.source=https://github.com/LinuxSuRen/atest-ext-store-git
4-
LABEL org.opencontainers.image.description="Git Store Extension of the API Testing."
5-
63
ARG VERSION
74
ARG GOPROXY
85
WORKDIR /workspace
@@ -14,10 +11,13 @@ COPY main.go main.go
1411
COPY README.md README.md
1512

1613
RUN GOPROXY=${GOPROXY} go mod download
17-
RUN GOPROXY=${GOPROXY} CGO_ENABLED=0 go build -ldflags "-w -s" -o atest-store-git .
14+
RUN GOPROXY=${GOPROXY} CGO_ENABLED=0 go build -ldflags "-w -s" -o atest-store-orm .
1815

1916
FROM alpine:3.12
2017

21-
COPY --from=builder /workspace/atest-store-git /usr/local/bin/atest-store-git
18+
LABEL org.opencontainers.image.source=https://github.com/LinuxSuRen/atest-ext-store-orm
19+
LABEL org.opencontainers.image.description="ORM database Store Extension of the API Testing."
20+
21+
COPY --from=builder /workspace/atest-store-orm /usr/local/bin/atest-store-orm
2222

23-
CMD [ "atest-store-git" ]
23+
CMD [ "atest-store-orm" ]

0 commit comments

Comments
 (0)