1
0
woodpecker-pipeline-transform/drone/testdata/simple.yml

45 lines
511 B
YAML
Raw Normal View History

2022-07-26 23:16:28 +02:00
---
kind: pipeline
type: docker
name: build
steps:
- name: test
image: golang:1.18
2022-07-27 16:56:40 +02:00
pull: always
2022-07-27 18:29:52 +02:00
environment:
- CGO=0
2022-07-26 23:16:28 +02:00
commands:
2022-07-26 23:20:25 +02:00
- go test ./...
2022-07-26 23:16:28 +02:00
- name: build
image: golang:1.18
2022-07-27 16:56:40 +02:00
pull: never
2022-07-27 18:29:52 +02:00
environment:
CGO: 0
GOOS: linux
GOARCH: amd64
2022-07-26 23:16:28 +02:00
commands:
- go build
2022-07-27 17:02:40 +02:00
depends_on:
- test
2022-07-26 23:16:28 +02:00
---
kind: pipeline
type: docker
name: deploy
depends_on:
- build
trigger:
status:
- success
steps:
- name: deploy
image: alpine:latest
2022-07-27 16:56:40 +02:00
pull: if-not-exists
2022-07-26 23:16:28 +02:00
commands:
- echo "Deploy"