diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 618c9b5..f7a8be5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -40,3 +40,8 @@ jobs: charts_dir: stable env: CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + + - name: Publish on ghcr.io + run: | + helm package stable/vulcan + helm login ghcr.io -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b94ed0d..5518b33 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -99,3 +99,30 @@ jobs: - name: Compare run: | ./compare.sh base/stable/vulcan true + + publish: + + runs-on: ubuntu-latest + + if: github.event_name == 'pull_request' + + permissions: + contents: write + packages: write + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up Helm + uses: azure/setup-helm@v4 + with: + version: v3.13.3 + + - name: Login + run: helm registry login ghcr.io -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }} + + - name: Publish on ghcr.io + run: | + helm package stable/vulcan + find . -name "vulcan-*.tgz" -exec helm push {} ghcr.io/adevinta/vulcan-charts/test \;