File tree Expand file tree Collapse file tree 3 files changed +20
-9
lines changed Expand file tree Collapse file tree 3 files changed +20
-9
lines changed Original file line number Diff line number Diff line change 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+
Original file line number Diff line number Diff line change 77builds :
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:
1919archives :
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
Original file line number Diff line number Diff line change 11FROM 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-
63ARG VERSION
74ARG GOPROXY
85WORKDIR /workspace
@@ -14,10 +11,13 @@ COPY main.go main.go
1411COPY README.md README.md
1512
1613RUN 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
1916FROM 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 " ]
You can’t perform that action at this time.
0 commit comments