1
1
Fork 0
mirror of https://github.com/lddsb/drone-goreportcard synced 2024-05-08 00:46:02 +02:00
lddsb-drone-goreportcard/.drone.yml
2019-03-10 13:55:08 +08:00

37 lines
740 B
YAML

---
kind: pipeline
name: build
steps:
- name: build
pull: always
image: golang
commands:
- go build -a -o drone-goreportcard .
environment:
GO111MODULE: on
CGO_ENABLED: 0
- name: dryrun
pull: always
image: plugins/docker
settings:
cache_from: lddsb/drone-goreportcard
dockerfile: Dockerfile
dryrun: true
repo: lddsb/drone-goreportcard
tags: latest
- name: publish
pull: always
image: plugins/docker
settings:
cache_from: lddsb/drone-goreportcard
dockerfile: Dockerfile
repo: lddsb/drone-goreportcard
tags: latest
username:
from_secret: docker_username
password:
from_secret: docker_password