Merge pull request #145 from EcovadisCode/buildAgentsChart #129
This file contains hidden or 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: Release a chart | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v2 | |
| with: | |
| fetch-depth: 0 | |
| ref: master | |
| - name: Configure Git | |
| run: | | |
| git config user.name "$GITHUB_ACTOR" | |
| git config user.email "$GITHUB_ACTOR@users.noreply.github.com" | |
| - name: Helm tool installer | |
| uses: azure/setup-helm@v1 | |
| with: | |
| version: '3.5.4' # default is latest stable | |
| id: install | |
| # - name: Parse Chart.yaml | |
| # id: parse-chart | |
| # run: | | |
| # name=$(yq ".name" < Chart.yaml) | |
| # version=$(yq ".version" < Chart.yaml) | |
| # echo "::set-output name=tagname::${name}-${version}" | |
| - name: Add dependency chart repos | |
| run: | | |
| helm repo add ecovadis https://ecovadiscode.github.io/charts/ | |
| - name: Run chart-releaser | |
| uses: helm/chart-releaser-action@v1.4.0 | |
| with: | |
| charts_dir: "charts" | |
| env: | |
| CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" |