hcloud-server-tf/.drone.yml
Robert Kaussow 358a2688e3
Some checks failed
continuous-integration/drone/pr Build is failing
ci: add release pipeline
2022-12-18 16:03:26 +01:00

93 lines
1.6 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}
depends_on:
- tags
- name: changelog-format
image: thegeeklab/alpine-tools
commands:
- prettier CHANGELOG.md
- prettier -w CHANGELOG.md
depends_on:
- changelog-generate
- 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/**
depends_on:
- publish-dockerhub
- publish-quay
trigger:
ref:
- refs/heads/main
- refs/pull/**
- refs/tags/**
depends_on:
- test
---
kind: signature
hmac: 8811fe550ab6c86d00c61525cfb9decaf56d324633c3a7171057d2f12cf5b86d
...