chore: Deduplicate checkout steps
Some checks failed
Container & Helm chart / Checkout (push) Failing after 54s
Container & Helm chart / Semantic Release (Dry-run) (push) Has been skipped
Container & Helm chart / Container image (push) Has been skipped
Container & Helm chart / Helm chart (push) Has been skipped

This commit is contained in:
Danny Bessems 2024-02-28 09:35:23 +11:00
parent a050bd8cba
commit 638adc1c40

View File

@ -2,11 +2,25 @@ name: Container & Helm chart
on: [push]
jobs:
Semantic Release (Dry-run):
runs-on: dind-rootless
Checkout:
runs-on: dind
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Store repository as artifact
uses: actions/upload-artifact@v4
with:
name: source
path: |
.
Semantic Release (Dry-run):
runs-on: dind-rootless
needs: Checkout
steps:
- name: Download repository
uses: actions/download-artifact@v4
with:
name: source
- name: Setup Node
uses: actions/setup-node@v3
with:
@ -43,8 +57,10 @@ jobs:
runs-on: dind
needs: Semantic Release (Dry-run)
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download repository
uses: actions/download-artifact@v4
with:
name: source
- name: Kaniko build
uses: aevea/action-kaniko@master
with:
@ -60,8 +76,10 @@ jobs:
needs: Semantic Release (Dry-run)
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download repository
uses: actions/download-artifact@v4
with:
name: source
- name: Inject semantic release version
run: |
sed -i 's/{{ chart_version }}/'${{ steps.sem_rel.outputs.version }}'/g' charts/spamasaurusrex/Chart.yaml