chore: Deduplicate checkout steps
Some checks failed
Some checks failed
This commit is contained in:
parent
a050bd8cba
commit
638adc1c40
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user