terraform-provider-gitea/.drone.yml
lerentis 69e50928f8
All checks were successful
continuous-integration/drone/push Build is passing
Update '.drone.yml'
2022-06-06 20:50:14 +00:00

53 lines
975 B
YAML

---
kind: pipeline
type: kubernetes
name: terraform-provider-gitea
platform:
os: linux
arch: amd64
steps:
- name: fetch
image: docker:git
commands:
- git fetch --tags
when:
event:
- push
- pull_request
- tag
- name: init
image: golang:1.18.3-alpine3.16
commands:
- "go mod download"
when:
event:
- push
- pull_request
- name: build
image: golang:1.18.3-alpine3.16
commands:
- "apk add --update --no-cache make"
- "make build"
when:
event:
- push
- pull_request
- name: test
image: golang:1.18.3-alpine3.16
commands:
- "apk add --update --no-cache make build-base"
- "make test"
when:
event:
- push
- pull_request
- name: release
image: goreleaser/goreleaser
environment:
GITEA_TOKEN:
from_secret: gitea_token
commands:
- goreleaser release
when:
event: tag