Merge pull request #13 from Aquaveo/gs-cloud #48
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update Helm | |
on: | |
push: | |
branches: | |
- 'master' | |
- 'main' | |
pull_request: | |
branches: | |
- '*' | |
jobs: | |
update-helm: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Set Env | |
run: | | |
echo "TAG=${GITHUB_REF:11}" >> $GITHUB_ENV | |
- name: Lint Helm | |
uses: WyriHaximus/[email protected] | |
with: | |
exec: helm lint ./geoserver && helm lint ./postgis && helm lint ./thredds | |
- name: Package GeoServer Helm | |
uses: WyriHaximus/[email protected] | |
with: | |
exec: helm package ./geoserver | |
- name: Package Thredds Helm | |
uses: WyriHaximus/[email protected] | |
with: | |
exec: helm package ./thredds | |
- name: Package PostGIS Helm | |
uses: WyriHaximus/[email protected] | |
with: | |
exec: helm package ./postgis | |
- name: Login to GHCR | |
if: ${{ github.event_name != 'pull_request' }} | |
uses: WyriHaximus/[email protected] | |
with: | |
exec: echo "${{ github.actor }}" | helm registry login -u ${{ secrets.GITHUB_TOKEN }} ghcr.io --password-stdin | |
- name: Push GeoServer Helm Package to GHCR | |
if: ${{ github.event_name != 'pull_request' }} | |
uses: WyriHaximus/[email protected] | |
with: | |
exec: | | |
export CHART_VERSION=$(grep 'version:' ./geoserver/Chart.yaml | tail -n1 | awk '{ print $2}') | |
helm push geoserver-${CHART_VERSION}.tgz oci://ghcr.io/aquaveo | |
- name: Push Thredds Helm Package to GHCR | |
if: ${{ github.event_name != 'pull_request' }} | |
uses: WyriHaximus/[email protected] | |
with: | |
exec: | | |
export CHART_VERSION=$(grep 'version:' ./thredds/Chart.yaml | tail -n1 | awk '{ print $2}') | |
helm push thredds-${CHART_VERSION}.tgz oci://ghcr.io/aquaveo | |
- name: Push PostGIS Helm Package to GHCR | |
if: ${{ github.event_name != 'pull_request' }} | |
uses: WyriHaximus/[email protected] | |
with: | |
exec: | | |
export CHART_VERSION=$(grep 'version:' ./postgis/Chart.yaml | tail -n1 | awk '{ print $2}') | |
helm push postgis-${CHART_VERSION}.tgz oci://ghcr.io/aquaveo |