Compare commits
13 Commits
c4817357cf
...
0.1.7
| Author | SHA1 | Date | |
|---|---|---|---|
| 8a4003819d | |||
| c988c26746 | |||
| 74e7be819e | |||
| 8973a9f9ff | |||
| 1b8fe65eda | |||
| 72551407e7 | |||
| d9f83ca84e | |||
| 8a04fa9247 | |||
| db88e979bb | |||
| 4d70414705 | |||
| 1b3aa245ae | |||
| b569618421 | |||
| 531d8441c4 |
@@ -10,16 +10,15 @@ jobs:
|
|||||||
name: Release
|
name: Release
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- run: npm ci
|
|
||||||
- name: Increment tag
|
- name: Increment tag
|
||||||
id: tag
|
id: tag
|
||||||
uses: https://gitea.t000-n.de/t.behrendt/conventional-semantic-git-tag-increment@0.1.2
|
uses: https://gitea.t000-n.de/t.behrendt/conventional-semantic-git-tag-increment@8d27605e8e6b2990e92e5aa75d703e602b8c4b2a # 0.1.28
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITEA_TOKEN }}
|
token: ${{ secrets.GITEA_TOKEN }}
|
||||||
- name: Push tag
|
- name: Push tag
|
||||||
run: |
|
uses: ./release-git-tag
|
||||||
git tag ${{ steps.tag.outputs.new-tag }}
|
with:
|
||||||
git push origin ${{ steps.tag.outputs.new-tag }}
|
tag: ${{ steps.tag.outputs.new-tag }}
|
||||||
|
|||||||
@@ -1,14 +0,0 @@
|
|||||||
name: CI
|
|
||||||
|
|
||||||
on: [push, pull_request]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
lint:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v5
|
|
||||||
- uses: actions/setup-go@v6
|
|
||||||
with:
|
|
||||||
go-version: 1.25.1
|
|
||||||
- run: go install github.com/rhysd/actionlint/cmd/actionlint@latest
|
|
||||||
- run: actionlint
|
|
||||||
@@ -5,3 +5,4 @@ Collection of Gitea friendly actions.
|
|||||||
## Actions
|
## Actions
|
||||||
|
|
||||||
- [release-git-tag](./release-git-tag//README.md)
|
- [release-git-tag](./release-git-tag//README.md)
|
||||||
|
- [release-helm-chart](./release-helm-chart/README.md)
|
||||||
|
|||||||
23
release-helm-chart/README.md
Normal file
23
release-helm-chart/README.md
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
# release-helm-chart
|
||||||
|
|
||||||
|
Packages and releases a Helm chart to a Gitea Helm registry.
|
||||||
|
|
||||||
|
## Inputs
|
||||||
|
|
||||||
|
| Input | Description | Required |
|
||||||
|
| ------------------- | ----------------------------- | -------- |
|
||||||
|
| `tag` | The version tag to release | Yes |
|
||||||
|
| `name` | The name of the Helm chart | Yes |
|
||||||
|
| `registry-user` | The username for the registry | Yes |
|
||||||
|
| `registry-password` | The password for the registry | Yes |
|
||||||
|
|
||||||
|
## Example
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
- uses: ./release-helm-chart
|
||||||
|
with:
|
||||||
|
tag: v1.2.3
|
||||||
|
name: my-chart
|
||||||
|
registry-user: myuser
|
||||||
|
registry-password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||||
|
```
|
||||||
30
release-helm-chart/action.yaml
Normal file
30
release-helm-chart/action.yaml
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
name: Release Helm chart
|
||||||
|
description: Release the Helm chart
|
||||||
|
|
||||||
|
inputs:
|
||||||
|
tag:
|
||||||
|
description: The tag to release
|
||||||
|
required: true
|
||||||
|
name:
|
||||||
|
description: The name of the Helm chart
|
||||||
|
required: true
|
||||||
|
registry-user:
|
||||||
|
description: The username for the registry
|
||||||
|
required: true
|
||||||
|
registry-password:
|
||||||
|
description: The password for the registry
|
||||||
|
required: true
|
||||||
|
|
||||||
|
runs:
|
||||||
|
using: "composite"
|
||||||
|
steps:
|
||||||
|
- shell: bash
|
||||||
|
run: |
|
||||||
|
helm package ${{ inputs.name }} --version ${{ inputs.tag }}
|
||||||
|
- shell: bash
|
||||||
|
run: |
|
||||||
|
curl --verbose --fail --show-error \
|
||||||
|
--user ${{ inputs.registry-user }}:${{ inputs.registry-password }} \
|
||||||
|
-X POST \
|
||||||
|
--upload-file ./${{ inputs.name }}-${{ inputs.tag }}.tgz \
|
||||||
|
https://gitea.t000-n.de/api/packages/${{ inputs.registry-user }}/helm/api/charts
|
||||||
Reference in New Issue
Block a user