terraform-provider-gitea/.drone.yml

53 lines
949 B
YAML
Raw Permalink Normal View History

---
kind: pipeline
type: kubernetes
name: terraform-provider-gitea
platform:
os: linux
arch: amd64
steps:
2022-06-06 20:49:06 +00:00
- name: fetch
image: docker:git
commands:
- git fetch --tags
when:
event:
- push
- pull_request
- tag
- name: build
2022-06-06 20:51:57 +00:00
image: goreleaser/goreleaser
commands:
2022-06-06 20:53:17 +00:00
- goreleaser build --snapshot
when:
event:
- push
- pull_request
2022-06-09 19:04:52 +00:00
resources:
limits:
2022-06-12 13:36:58 +00:00
cpu: 1000
2022-06-09 19:04:52 +00:00
memory: 1024MiB
- name: test
image: golang:1.18.3-alpine3.16
commands:
2022-06-04 15:22:51 +00:00
- "apk add --update --no-cache make build-base"
- "make test"
when:
event:
- push
2022-06-06 20:49:06 +00:00
- pull_request
- name: release
image: goreleaser/goreleaser
environment:
2022-06-06 20:50:14 +00:00
GITEA_TOKEN:
from_secret: gitea_token
2022-06-06 20:49:06 +00:00
commands:
- goreleaser release
2022-06-09 19:04:52 +00:00
resources:
limits:
2022-06-12 13:36:58 +00:00
cpu: 1000
2022-06-09 19:04:52 +00:00
memory: 1024MiB
2022-06-06 20:49:06 +00:00
when:
2022-06-12 13:36:58 +00:00
event:
- tag