2020-07-12 10:19:31 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
2021-11-05 12:06:48 +08:00
|
|
|
type: docker
|
2020-09-02 13:55:41 +00:00
|
|
|
name: lint
|
2020-07-12 10:19:31 +00:00
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
2020-09-29 13:49:34 +00:00
|
|
|
arch: arm64
|
2020-07-12 10:19:31 +00:00
|
|
|
|
|
|
|
steps:
|
2021-11-05 12:06:48 +08:00
|
|
|
- name: helm lint
|
2020-07-12 10:19:31 +00:00
|
|
|
pull: always
|
2022-02-26 06:01:16 +08:00
|
|
|
image: alpine:3.15
|
2020-09-29 13:49:34 +00:00
|
|
|
commands:
|
2021-11-05 12:06:48 +08:00
|
|
|
- apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing helm
|
|
|
|
- helm lint
|
|
|
|
|
2021-12-23 00:25:32 +08:00
|
|
|
- name: helm template
|
|
|
|
pull: always
|
2022-02-26 06:01:16 +08:00
|
|
|
image: alpine:3.15
|
2021-12-23 00:25:32 +08:00
|
|
|
commands:
|
|
|
|
- apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing helm
|
|
|
|
- helm dependency update
|
|
|
|
- helm template --debug gitea-helm .
|
|
|
|
|
2021-11-05 12:06:48 +08:00
|
|
|
- name: markdown lint
|
|
|
|
pull: always
|
|
|
|
image: docker.io/volkerraschek/markdownlint:latest
|
|
|
|
commands:
|
|
|
|
- markdownlint *.md
|
2020-07-12 10:19:31 +00:00
|
|
|
|
|
|
|
- name: discord
|
|
|
|
pull: always
|
2020-09-29 13:49:34 +00:00
|
|
|
image: appleboy/drone-discord:1.2.4
|
2020-07-12 10:19:31 +00:00
|
|
|
environment:
|
|
|
|
DISCORD_WEBHOOK_ID:
|
|
|
|
from_secret: discord_webhook_id
|
|
|
|
DISCORD_WEBHOOK_TOKEN:
|
|
|
|
from_secret: discord_webhook_token
|
|
|
|
when:
|
|
|
|
status:
|
|
|
|
- changed
|
|
|
|
- failure
|
2020-09-02 13:55:41 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
2021-11-05 12:06:48 +08:00
|
|
|
type: docker
|
2020-09-02 13:55:41 +00:00
|
|
|
name: release-version
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
2020-09-02 14:21:41 +00:00
|
|
|
arch: arm64
|
2020-09-02 13:55:41 +00:00
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
2021-11-05 12:06:48 +08:00
|
|
|
- tag
|
2020-09-02 13:55:41 +00:00
|
|
|
|
|
|
|
steps:
|
2021-11-05 12:06:48 +08:00
|
|
|
- name: generate-chart
|
|
|
|
pull: always
|
2022-02-26 06:01:16 +08:00
|
|
|
image: alpine:3.15
|
2021-11-05 12:06:48 +08:00
|
|
|
commands:
|
|
|
|
- apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing helm
|
|
|
|
- apk add --no-cache curl
|
|
|
|
- helm dependency update
|
|
|
|
- helm package --version "${DRONE_TAG##v}" ./
|
|
|
|
- mkdir gitea
|
|
|
|
- mv gitea*.tgz gitea/
|
|
|
|
- curl -L -o gitea/index.yaml https://dl.gitea.io/charts/index.yaml
|
|
|
|
- helm repo index gitea/ --url https://dl.gitea.io/charts --merge gitea/index.yaml
|
2020-09-02 14:21:41 +00:00
|
|
|
|
2021-11-05 12:06:48 +08:00
|
|
|
- name: upload-chart
|
|
|
|
pull: always
|
|
|
|
image: plugins/s3:latest
|
|
|
|
settings:
|
|
|
|
bucket: gitea-artifacts
|
2022-02-26 06:01:16 +08:00
|
|
|
endpoint: https://ams3.digitaloceanspaces.com
|
2021-11-05 12:06:48 +08:00
|
|
|
access_key:
|
|
|
|
from_secret: aws_access_key_id
|
|
|
|
secret_key:
|
|
|
|
from_secret: aws_secret_access_key
|
|
|
|
source: gitea/*
|
|
|
|
target: /charts
|
|
|
|
strip_prefix: gitea/
|