Skip to content
# This is a basic workflow to help you get started with Actions
name: Update Helm Repo
on:
push:
branches:
- '*'
paths:
- 'helm/**'
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
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 ./helm/condor-manager/ && helm lint ./helm/condor-manager/
- name: Package Condor Manager Helm
uses: WyriHaximus/[email protected]
with:
exec: helm package ./helm/condor-manager/
- name: Copy Helm Package to docs
run: |
cd ${{github.workspace}} &&
LOCAL_PACKAGE=$(ls *.tgz | head -n1) &&
echo $LOCAL_PACKAGE &&
mv -vn $LOCAL_PACKAGE ./docs/$LOCAL_PACKAGE &&
rm -f *.tgz
- name: Package Condor Worker Helm
uses: WyriHaximus/[email protected]
with:
exec: helm package ./helm/condor-worker/
- name: Copy Helm Package to docs
run: |
cd ${{github.workspace}} &&
LOCAL_PACKAGE=$(ls *.tgz | head -n1) &&
echo $LOCAL_PACKAGE &&
mv -vn $LOCAL_PACKAGE ./docs/$LOCAL_PACKAGE &&
rm -f *.tgz &&
rm -f *.tgz.~*
- name: Create new index file
uses: WyriHaximus/[email protected]
with:
exec: ls . && helm repo index ./docs --url https://aquaveo.github.io/condor-docker/
- name: Commit Changes
run: |
git config --global user.name "GitHub Action" &&
git config --global user.email "[email protected]" &&
git checkout $TAG &&
git add . &&
git commit -m "Update Helm Repo"
- name: Push Changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GIT_PASSWORD }}