Skip to content

Commit

Permalink
use artifacts to move modified content between jobs
Browse files Browse the repository at this point in the history
Signed-off-by: Burak Sekili <[email protected]>
  • Loading branch information
buraksekili committed Dec 13, 2024
1 parent cbc72db commit 0d42a87
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/release-alpha.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,13 @@ jobs:
done
fi
echo "CHART_ARTIFACT=chart-$(basename ${{ matrix.chart }})" >> $GITHUB_ENV
- name: Upload modified chart
uses: actions/upload-artifact@v4
with:
name: chart-${{ matrix.chart }}
name: ${{ env.CHART_ARTIFACT }}
path: ${{ matrix.chart }}
retention-days: 1

release-alpha-version:
needs: [prepare-release, update-meta]
Expand All @@ -90,12 +91,16 @@ jobs:
with:
sparse-checkout: |
ct.yaml
- name: Download modified chart
- name: Generate Artifact name
run: |
echo "CHART_ARTIFACT_NAME=chart-$(basename ${{ matrix.chart }})" >> $GITHUB_ENV
- name: Download modified chart from Artifact
uses: actions/download-artifact@v4
with:
name: chart-${{ matrix.chart }}
path: ${{ matrix.chart }}
name: ${{ env.CHART_ARTIFACT_NAME }}
path: "./"

- name: Set up Helm
uses: azure/setup-helm@v3
Expand All @@ -113,10 +118,6 @@ jobs:
- name: Update Helm Dependencies
run: helm dependency update ${{ matrix.chart }}

- name: Run chart-testing (lint)
run: |
ct lint --config ct.yaml --all --debug
- name: Package Helm Chart
run: |
helm package ${{ matrix.chart }} --version ${{ needs.prepare-release.outputs.version }}
Expand Down

0 comments on commit 0d42a87

Please sign in to comment.