helm-chart/.drone.yml

69 lines
1.4 KiB
YAML
Raw Normal View History

---
kind: pipeline
name: lint
platform:
os: linux
arch: arm64
steps:
- name: lint
pull: always
2021-06-08 02:02:59 +08:00
image: alpine:3.13
commands:
- apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing helm
- helm lint
- name: discord
pull: always
image: appleboy/drone-discord:1.2.4
environment:
DISCORD_WEBHOOK_ID:
from_secret: discord_webhook_id
DISCORD_WEBHOOK_TOKEN:
from_secret: discord_webhook_token
when:
status:
- changed
- failure
---
kind: pipeline
name: release-version
platform:
os: linux
2020-09-02 14:21:41 +00:00
arch: arm64
trigger:
event:
- tag
steps:
- name: generate-chart
pull: always
2021-06-08 02:02:59 +08:00
image: alpine:3.13
commands:
- apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing helm
2021-06-08 02:02:59 +08:00
- apk add --no-cache curl
- helm dependency update
- helm package --version "${DRONE_TAG##v}" ./
- mkdir gitea
- mv gitea*.tgz gitea/
2021-06-08 02:02:59 +08:00
- 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
- name: upload-chart
pull: always
image: plugins/s3:latest
settings:
2021-06-08 02:05:07 +08:00
bucket: gitea-artifacts
2020-09-02 14:21:41 +00:00
endpoint: https://storage.gitea.io
path_style: true
access_key:
from_secret: aws_access_key_id
secret_key:
from_secret: aws_secret_access_key
source: gitea/*
target: /charts
strip_prefix: gitea/