Skip to content

Commit

Permalink
Add release GitHub action
Browse files Browse the repository at this point in the history
  • Loading branch information
korridor committed Nov 15, 2024
1 parent 22a6158 commit 429d1fc
Show file tree
Hide file tree
Showing 21 changed files with 44 additions and 4 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,17 @@ jobs:
uses: actions/checkout@v4

- name: "Install Helm"
uses: azure/setup-helm@v3
uses: azure/setup-helm@v4

- name: "Lint helm chart"
run: helm lint . --values values.yaml
run: helm lint charts/larakube --values charts/larakube/values.yaml

- name: "Build helm chart"
run: helm template . --values values.yaml --output-dir build --debug
run: helm template charts/larakube --values charts/larakube/values.yaml --output-dir build --debug

- uses: actions/upload-artifact@v4
with:
name: build
path: build
compression-level: 9
if-no-files-found: error
33 changes: 33 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Release Helm Chart

on:
push:

jobs:
release:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: "Checkout code"
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: "Configure Git"
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: "Install Helm"
uses: azure/setup-helm@v4
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

- name: "Copy readme"
run: cp readme.md charts/larakube/README.md

- name: "Run chart-releaser"
uses: helm/[email protected]
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion values.yaml → charts/larakube/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Declare variables to be passed into your templates.

image:
repository: nginx
repository: ""
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: ""
Expand Down

0 comments on commit 429d1fc

Please sign in to comment.