|
@ -54,12 +54,4 @@ pipeline: |
|
|
- CGO_ENABLED=0 |
|
|
- CGO_ENABLED=0 |
|
|
image: golang:1.10 |
|
|
image: golang:1.10 |
|
|
commands: |
|
|
commands: |
|
|
- go build -a -installsuffix cgo -ldflags="-s -w" -o /go/output/rpdata-as2storyimport ./cmd/rpdata-as2storyimport |
|
|
|
|
|
deploy-scp: |
|
|
|
|
|
image: appleboy/drone-scp |
|
|
|
|
|
host: 10.32.0.2 |
|
|
|
|
|
username: artifacts |
|
|
|
|
|
secrets: [ ssh_key ] |
|
|
|
|
|
source: /go/output/* |
|
|
|
|
|
target: /srv/artifacts/store/rpdata/ |
|
|
|
|
|
strip_components: 2 |
|
|
|
|
|
|
|
|
- go build -a -installsuffix cgo -ldflags="-s -w" -o /go/output/rpdata-as2storyimport ./cmd/rpdata-as2storyimport |