Former-commit-id: d04a1e48dae2a9938f0a24d6adb3b78c8be1fc29 Former-commit-id: 0fc40f68b6dff8f73359f8dc9b4de8895fe35bf21.0
parent
16856a76a2
commit
5d90dc7717
@ -1,21 +1,28 @@
|
||||
kind: pipeline
|
||||
name: default
|
||||
type: docker
|
||||
name: default
|
||||
|
||||
platform:
|
||||
arch: amd64
|
||||
os: linux
|
||||
|
||||
steps:
|
||||
- name: test
|
||||
image: golang:1.12
|
||||
image: golang:1.16.4
|
||||
commands:
|
||||
- go test
|
||||
- ls
|
||||
|
||||
- name: build
|
||||
image: golang:1.12
|
||||
image: golang:1.16.4
|
||||
commands:
|
||||
- go build
|
||||
- ls
|
||||
- go build -ldflags "-X main.version=${DRONE_COMMIT_SHA:0:8}"
|
||||
|
||||
- name: publish
|
||||
image: plugins/docker
|
||||
image: plugins/docker:19.03.8
|
||||
settings:
|
||||
registry: 172.20.32.1:5000
|
||||
repo: 172.20.32.1:5000/go/hello-world
|
||||
insecure: true
|
||||
tags: [ 1, 1.2, latest ]
|
||||
tags:
|
||||
- latest
|
||||
- ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}-${DRONE_REPO_BRANCH}-${DRONE_COMMIT_SHA:0:8}
|
Loading…
Reference in new issue