File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments