Finished CI Build
This commit is contained in:
parent
e226706307
commit
1131c2f7a5
1 changed files with 16 additions and 1 deletions
17
.drone.yml
17
.drone.yml
|
@ -26,7 +26,19 @@ kind: pipeline
|
|||
name: build
|
||||
|
||||
steps:
|
||||
- name: build-docker
|
||||
- name: Build Binary for Testing (linux/amd64)
|
||||
image: golang
|
||||
commands:
|
||||
- go get -v -d ./...
|
||||
- go build -a -installsuffix cgo
|
||||
-ldflags="-X $I_PACKAGE.CI_COMMIT_SHORT_SHA=$CI_COMMIT_SHORT_SHA
|
||||
-X $I_PACKAGE.CI_COMMIT_BRANCH=$CI_COMMIT_BRANCH
|
||||
-X $I_PACKAGE.CI_COMMIT_TAG=$CI_COMMIT_TAG"
|
||||
-o linux-amd64
|
||||
.
|
||||
|
||||
steps:
|
||||
- name: Build-latest-tag-docker
|
||||
image: docker:dind
|
||||
volumes:
|
||||
- name: dockersock
|
||||
|
@ -60,3 +72,6 @@ services:
|
|||
volumes:
|
||||
- name: dockersock
|
||||
temp: {}
|
||||
|
||||
depends_on:
|
||||
- check
|
Loading…
Reference in a new issue