|
|
@ -26,30 +26,7 @@ steps:
|
|
|
|
commands:
|
|
|
|
commands:
|
|
|
|
- cd /workspace
|
|
|
|
- cd /workspace
|
|
|
|
- pwd
|
|
|
|
- pwd
|
|
|
|
# - git clone http://47.112.165.44:3000/seekm/prdUploader.git
|
|
|
|
- git clone http://47.112.165.44:3000/seekm/prdUploader.git
|
|
|
|
|
|
|
|
|
|
|
|
# - name: build
|
|
|
|
|
|
|
|
# image: golang:1.21-alpine
|
|
|
|
|
|
|
|
# pull: never
|
|
|
|
|
|
|
|
# environment:
|
|
|
|
|
|
|
|
# GO111MODULE: on
|
|
|
|
|
|
|
|
# CGO_ENABLED: 0
|
|
|
|
|
|
|
|
# GOPROXY: https://goproxy.cn
|
|
|
|
|
|
|
|
# GOMODCACHE: /go/pkg/mod
|
|
|
|
|
|
|
|
# volumes:
|
|
|
|
|
|
|
|
# - name: shared-folder
|
|
|
|
|
|
|
|
# path: /workspace
|
|
|
|
|
|
|
|
# - name: go-cache
|
|
|
|
|
|
|
|
# path: /go/pkg/mod
|
|
|
|
|
|
|
|
# commands:
|
|
|
|
|
|
|
|
# - echo "Building binary..."
|
|
|
|
|
|
|
|
# - cd /workspace/prdUploader
|
|
|
|
|
|
|
|
# - pwd
|
|
|
|
|
|
|
|
# - echo $GOMODCACHE
|
|
|
|
|
|
|
|
# - go mod tidy
|
|
|
|
|
|
|
|
## - go build -o myapp -ldflags "-X main.RunMode=test -s -w"
|
|
|
|
|
|
|
|
# - echo "Building binary finished"
|
|
|
|
|
|
|
|
# - ls -lh myapp
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: deploy
|
|
|
|
- name: deploy
|
|
|
|
image: docker:24.0-cli
|
|
|
|
image: docker:24.0-cli
|
|
|
|