2023-11-05 14:48:22 +00:00
|
|
|
name: Gitea Actions Demo
|
|
|
|
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
Explore-Gitea-Actions:
|
|
|
|
runs-on: ubuntu-22.04:docker://node:18-bullseye
|
|
|
|
steps:
|
|
|
|
- name: Check out repository code
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install helm
|
|
|
|
uses: azure/setup-helm@v3
|
2023-11-05 14:52:15 +00:00
|
|
|
- name: Install cm-push
|
|
|
|
run: |
|
|
|
|
helm plugin install https://github.com/chartmuseum/helm-push
|
2023-11-05 14:48:22 +00:00
|
|
|
- name: Package helm chart
|
|
|
|
run: |
|
|
|
|
helm package chart/
|
2023-11-05 15:23:03 +00:00
|
|
|
- name: Push Helm Chart to Gitea
|
|
|
|
uses: bsord/helm-push@4.2.0
|
|
|
|
with:
|
|
|
|
username: accidentallycompetent
|
|
|
|
password: ${{ secret.PUBLIC_PACKAGE_WRITE }}
|
|
|
|
registry-url: 'https://gitea.example.com/api/packages/octocloudlab/helm'
|
|
|
|
force: true
|
|
|
|
chart-folder: chart
|
2023-11-05 15:05:45 +00:00
|
|
|
- run: echo "🍏 This job's status is ${{ job.status }}."
|