drone-ci-demo/.drone.yml
lab c57055a203
All checks were successful
continuous-integration/drone/push Build is passing
change .drone.yml steps
2021-12-05 03:26:10 +08:00

46 lines
797 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:
- export CGO_ENABLED=0
- export GOOS="linux"
- export GOARCH="amd64"
- go build -ldflags="-s -w" -tags timetzdata -o app main.go
- name: publish
image: plugins/docker
settings:
repo: esinio/helloworld
username:
from_secret: docker_username
password:
from_secret: docker_password
trigger:
branch:
- master
event:
- push