2020-07-12 05:19:31 -05:00
|
|
|
---
|
|
|
|
kind: pipeline
|
2020-09-02 08:55:41 -05:00
|
|
|
name: lint
|
2020-07-12 05:19:31 -05:00
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
2020-09-29 08:49:34 -05:00
|
|
|
arch: arm64
|
2020-07-12 05:19:31 -05:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: lint
|
|
|
|
pull: always
|
2021-06-07 13:02:59 -05:00
|
|
|
image: alpine:3.13
|
2020-09-29 08:49:34 -05:00
|
|
|
commands:
|
|
|
|
- apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing helm
|
|
|
|
- helm lint
|
2020-07-12 05:19:31 -05:00
|
|
|
|
|
|
|
- name: discord
|
|
|
|
pull: always
|
2020-09-29 08:49:34 -05:00
|
|
|
image: appleboy/drone-discord:1.2.4
|
2020-07-12 05:19:31 -05: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 08:55:41 -05:00
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: release-version
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
2020-09-02 09:21:41 -05:00
|
|
|
arch: arm64
|
2020-09-02 08:55:41 -05:00
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- tag
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: generate-chart
|
2020-12-20 20:05:42 -06:00
|
|
|
pull: always
|
2021-06-07 13:02:59 -05:00
|
|
|
image: alpine:3.13
|
2020-09-02 08:55:41 -05:00
|
|
|
commands:
|
2020-09-29 08:49:34 -05:00
|
|
|
- apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing helm
|
2021-06-07 13:02:59 -05:00
|
|
|
- apk add --no-cache curl
|
2020-09-02 08:55:41 -05:00
|
|
|
- helm dependency update
|
2020-12-20 20:05:42 -06:00
|
|
|
- helm package --version "${DRONE_TAG##v}" ./
|
2020-09-02 08:55:41 -05:00
|
|
|
- mkdir gitea
|
|
|
|
- mv gitea*.tgz gitea/
|
2021-06-07 13:02:59 -05:00
|
|
|
- curl -L -o gitea/index.yaml https://dl.gitea.io/charts/index.yaml
|
2020-09-02 08:55:41 -05:00
|
|
|
- helm repo index gitea/ --url https://dl.gitea.io/charts --merge gitea/index.yaml
|
2020-09-02 09:21:41 -05:00
|
|
|
|
2020-09-02 08:55:41 -05:00
|
|
|
- name: upload-chart
|
2020-12-20 20:05:42 -06:00
|
|
|
pull: always
|
2020-09-02 08:55:41 -05:00
|
|
|
image: plugins/s3:latest
|
|
|
|
settings:
|
2021-06-07 13:05:07 -05:00
|
|
|
bucket: gitea-artifacts
|
2020-09-02 09:21:41 -05:00
|
|
|
endpoint: https://storage.gitea.io
|
|
|
|
path_style: true
|
2020-09-02 08:55:41 -05:00
|
|
|
access_key:
|
|
|
|
from_secret: aws_access_key_id
|
|
|
|
secret_key:
|
|
|
|
from_secret: aws_secret_access_key
|
|
|
|
source: gitea/*
|
|
|
|
target: /charts
|
|
|
|
strip_prefix: gitea/
|