mirror of
https://git.uploadfilter24.eu/lerentis/terraform-provider-gitea.git
synced 2024-11-05 10:28:12 +00:00
52 lines
949 B
YAML
52 lines
949 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: build
|
|
image: goreleaser/goreleaser
|
|
commands:
|
|
- goreleaser build --snapshot
|
|
when:
|
|
event:
|
|
- push
|
|
- pull_request
|
|
resources:
|
|
limits:
|
|
cpu: 1000
|
|
memory: 1024MiB
|
|
- 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
|
|
resources:
|
|
limits:
|
|
cpu: 1000
|
|
memory: 1024MiB
|
|
when:
|
|
event:
|
|
- tag
|