Skip to content

Commit 685cea4

Browse files
committed
adding chart releaser flow
1 parent ccdc353 commit 685cea4

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/oci_releaser.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: OCI Releaser
2+
on:
3+
push:
4+
5+
jobs:
6+
release:
7+
runs-on: ubuntu-latest
8+
name: "Release Chart OCI to ghcr.io"
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v2
12+
with:
13+
fetch-depth: 0
14+
- name: Extract Version from Chart.yaml
15+
id: chart-version
16+
run: |
17+
# Install yq to parse YAML
18+
sudo wget -O /usr/local/bin/yq https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64
19+
sudo chmod +x /usr/local/bin/yq
20+
export CHART_VERSION=$(yq '.version' ./charts/factorio-server-charts/Chart.yaml)
21+
echo "chart-version=${CHART_VERSION}"
22+
echo "CHART_VERSION=$CHART_VERSION" >> $GITHUB_ENV
23+
- name: Publish OCI
24+
uses: appany/helm-oci-chart-releaser@v0.4.2
25+
with:
26+
name: factorio-server-charts
27+
repository: sqljames
28+
tag: $CHART_VERSION
29+
path: charts/factorio-server-charts # Default charts/{name}
30+
registry: ghcr.io
31+
registry_username: ${{ secrets.REGISTRY_USERNAME }}
32+
registry_password: ${{ secrets.REGISTRY_PASSWORD }}
33+
update_dependencies: 'true' # Defaults to false

0 commit comments

Comments
 (0)