chore: Attempt different syntax to pass variables between jobs
Some checks failed
Container & Helm chart / Semantic Release (Dry-run) (push) Successful in 35s
Container & Helm chart / Helm chart (push) Failing after 16s
Container & Helm chart / Container image (push) Successful in 54s

This commit is contained in:
Danny Bessems 2024-02-28 10:23:00 +11:00
parent 7f08271a4e
commit f592d75764

View File

@ -54,7 +54,7 @@ jobs:
image: djpbessems/spamasaurusrex
username: ${{ secrets.GIT_USERNAME }}
password: ${{ secrets.GIT_APIKEY }}
tag: ${{ steps.sem_rel.outputs.version }}
tag: ${{ needs.sem_rel.outputs.version }}
Helm chart:
runs-on: dind-rootless
@ -65,8 +65,8 @@ jobs:
uses: actions/checkout@v4
- name: Inject semantic release version
run: |
sed -i 's/{{ chart_version }}/'${{ steps.sem_rel.outputs.version }}'/g' charts/spamasaurusrex/Chart.yaml
sed -i 's/{{ image_tag }}/'${{ steps.sem_rel.outputs.version }}'/g' charts/spamasaurusrex/values.yaml
sed -i 's/{{ chart_version }}/'${{ needs.sem_rel.outputs.version }}'/g' charts/spamasaurusrex/Chart.yaml
sed -i 's/{{ image_tag }}/'${{ needs.sem_rel.outputs.version }}'/g' charts/spamasaurusrex/values.yaml
- name: Install helm w/ plugins
run: |
curl https://baltocdn.com/helm/signing.asc | gpg --dearmor | tee /usr/share/keyrings/helm.gpg > /dev/null