Former-commit-id: d04a1e48dae2a9938f0a24d6adb3b78c8be1fc29 Former-commit-id: 0fc40f68b6dff8f73359f8dc9b4de8895fe35bf21.0
parent
16856a76a2
commit
5d90dc7717
@ -1,21 +1,28 @@
|
|||||||
kind: pipeline
|
kind: pipeline
|
||||||
name: default
|
|
||||||
type: docker
|
type: docker
|
||||||
|
name: default
|
||||||
|
|
||||||
|
platform:
|
||||||
|
arch: amd64
|
||||||
|
os: linux
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: test
|
- name: test
|
||||||
image: golang:1.12
|
image: golang:1.16.4
|
||||||
commands:
|
commands:
|
||||||
- go test
|
- go test
|
||||||
- ls
|
|
||||||
- name: build
|
- name: build
|
||||||
image: golang:1.12
|
image: golang:1.16.4
|
||||||
commands:
|
commands:
|
||||||
- go build
|
- go build -ldflags "-X main.version=${DRONE_COMMIT_SHA:0:8}"
|
||||||
- ls
|
|
||||||
- name: publish
|
- name: publish
|
||||||
image: plugins/docker
|
image: plugins/docker:19.03.8
|
||||||
settings:
|
settings:
|
||||||
registry: 172.20.32.1:5000
|
registry: 172.20.32.1:5000
|
||||||
repo: 172.20.32.1:5000/go/hello-world
|
repo: 172.20.32.1:5000/go/hello-world
|
||||||
insecure: true
|
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