drone-ci-demo/.drone.yml
lab b877f2b9e8
All checks were successful
continuous-integration/drone/push Build is passing
feat: multi-stage builds
2021-12-05 01:21:24 +08:00

43 lines
749 B
YAML

kind: pipeline
type: docker
name: default
steps:
- name: greeting
image: alpine
commands:
- echo hello
- echo world
- echo done
- name: en
image: alpine
commands:
- echo hello world
- name: fr
image: alpine
commands:
- echo bonjour monde
- name: build
image: golang:1.17-alpine
pull: if-not-exists
commands:
- CGO_ENABLED=0 GOOS="linux" GOARCH="amd64" go build -ldflags="-s -w" -tags timetzdata -o app main.go
- name: docker
image: plugins/docker
settings:
repo: esinio/helloworld
username:
from_secret: docker_username
password:
from_secret: docker_password
trigger:
branch:
- master
event:
- push