Skip to content

adding chart releaser flow #74

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/oci_releaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: OCI Releaser
on:
push:

jobs:
release:
runs-on: ubuntu-latest
name: "Release Chart OCI to ghcr.io"
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: "Set Up Helm"
uses: azure/setup-helm@v3.3
if: github.ref != 'refs/heads/main'
with:
version: v3.4.1
- name: Extract Version from Chart.yaml
id: chart-version
run: |
# Install yq to parse YAML
sudo wget -O /usr/local/bin/yq https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64
sudo chmod +x /usr/local/bin/yq
export CHART_VERSION=$(yq '.version' ./charts/factorio-server-charts/Chart.yaml)
echo "chart-version=${CHART_VERSION}"
echo "CHART_VERSION=$CHART_VERSION" >> $GITHUB_ENV
- name: Publish OCI
uses: appany/helm-oci-chart-releaser@v0.4.2
with:
name: factorio-server-charts
repository: sqljames
tag: $CHART_VERSION
path: charts/factorio-server-charts # Default charts/{name}
registry: ghcr.io
registry_username: ${{ github.actor }}
registry_password: ${{ secrets.GITHUB_TOKEN }}
update_dependencies: 'true' # Defaults to false
Loading