86 lines
1.4 KiB
YAML
86 lines
1.4 KiB
YAML
---
|
|
kind: pipeline
|
|
name: test
|
|
|
|
platform:
|
|
os: linux
|
|
arch: amd64
|
|
|
|
steps:
|
|
- name: whitespace
|
|
pull: always
|
|
image: thegeeklab/alpine-tools
|
|
commands:
|
|
- git diff-tree --check $(git hash-object -t tree /dev/null) HEAD
|
|
|
|
- name: tflint
|
|
image: ghcr.io/terraform-linters/tflint
|
|
commands:
|
|
- tflint --color
|
|
|
|
- name: terraform
|
|
pull: always
|
|
image: jmccann/drone-terraform:8
|
|
settings:
|
|
actions:
|
|
- validate
|
|
tf_version: 1.3.0
|
|
|
|
node:
|
|
zone: mgmt
|
|
|
|
trigger:
|
|
ref:
|
|
- refs/heads/main
|
|
- refs/tags/**
|
|
- refs/pull/**
|
|
|
|
---
|
|
kind: pipeline
|
|
name: release
|
|
|
|
platform:
|
|
os: linux
|
|
arch: amd64
|
|
|
|
steps:
|
|
- name: changelog-generate
|
|
image: thegeeklab/git-chglog
|
|
commands:
|
|
- git fetch -tq
|
|
- git-chglog --no-color --no-emoji -o CHANGELOG.md ${DRONE_TAG:---next-tag unreleased unreleased}
|
|
|
|
- name: changelog-format
|
|
image: thegeeklab/alpine-tools
|
|
commands:
|
|
- prettier CHANGELOG.md
|
|
- prettier -w CHANGELOG.md
|
|
|
|
- name: publish-gitea
|
|
image: plugins/gitea-release
|
|
settings:
|
|
api_key:
|
|
from_secret: gitea_token
|
|
base_url: https://gitea.rknet.org
|
|
note: CHANGELOG.md
|
|
overwrite: true
|
|
title: ${DRONE_TAG}
|
|
when:
|
|
ref:
|
|
- refs/tags/**
|
|
|
|
trigger:
|
|
ref:
|
|
- refs/heads/main
|
|
- refs/pull/**
|
|
- refs/tags/**
|
|
|
|
depends_on:
|
|
- test
|
|
|
|
---
|
|
kind: signature
|
|
hmac: 3ecadad3cee7f0d3431ef14117996741a4c4d7bbfa94adc16c009556ccc3f4c0
|
|
|
|
...
|