mirror of
https://github.com/YuzuZensai/palworld-server-docker.git
synced 2026-01-06 04:32:43 +00:00
Add helm chart-releaser
# Motivations # Modifications
This commit is contained in:
34
.github/workflows/release.yml
vendored
34
.github/workflows/release.yml
vendored
@@ -4,7 +4,9 @@ on:
|
|||||||
types: [published]
|
types: [published]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
# Builds the Dockerfile and pushes it to dockerhub
|
||||||
release:
|
release:
|
||||||
|
name: Release - Docker image
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@@ -34,3 +36,35 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
|
|
||||||
|
# Generates a new release specifically for the helm chart, using the helm charts version
|
||||||
|
# Only generates a new release if the helm charts version has changed since the last release
|
||||||
|
# Will then update the gh-pages branch & helm repository
|
||||||
|
release-helm:
|
||||||
|
name: Release - Helm chart
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
pages: write
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Git - Configure
|
||||||
|
run: |
|
||||||
|
git config user.name "$GITHUB_ACTOR"
|
||||||
|
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
|
||||||
|
|
||||||
|
# Will push updates to a index.yaml file in the gh-pages branch
|
||||||
|
- name: Helm - chart-releaser
|
||||||
|
uses: helm/chart-releaser-action@v1.6.0
|
||||||
|
with:
|
||||||
|
charts_dir: charts
|
||||||
|
pages_branch: gh-pages
|
||||||
|
mark_as_latest: false
|
||||||
|
skip_existing: true
|
||||||
|
config: ./charts/cr.yaml
|
||||||
|
env:
|
||||||
|
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
|
|||||||
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1,4 +1,3 @@
|
|||||||
palworld
|
palworld
|
||||||
.idea
|
.idea
|
||||||
values*.yaml
|
!charts/*
|
||||||
!chart/values.yaml
|
|
||||||
1
charts/cr.yaml
Normal file
1
charts/cr.yaml
Normal file
@@ -0,0 +1 @@
|
|||||||
|
release-name-template: "chart-{{ .Version }}"
|
||||||
Reference in New Issue
Block a user