hcloud-server-tf/.drone.yml

89 lines
1.5 KiB
YAML
Raw Normal View History

2022-09-01 21:43:01 +02:00
---
kind: pipeline
2022-12-18 16:23:07 +01:00
name: test
2022-09-01 21:43:01 +02:00
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
2022-12-18 16:23:07 +01:00
- name: tflint
image: ghcr.io/terraform-linters/tflint
commands:
- tflint --color
2022-09-01 21:43:01 +02:00
- name: terraform
pull: always
image: jmccann/drone-terraform:8
settings:
actions:
- validate
2022-12-18 16:23:07 +01:00
tf_version: 1.3.0
2022-09-01 21:43:01 +02:00
node:
zone: mgmt
trigger:
ref:
- refs/heads/main
- refs/tags/**
- refs/pull/**
2022-12-18 16:23:07 +01:00
---
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/**
node:
zone: mgmt
trigger:
ref:
- refs/heads/main
- refs/pull/**
- refs/tags/**
depends_on:
- test
2022-09-01 21:43:01 +02:00
---
kind: signature
2022-12-18 16:23:07 +01:00
hmac: 08a182381788120a9debba89ce838da455d72b0057be6bd1b84ae3437eb1106d
2022-09-01 21:43:01 +02:00
...