chore: Rebase helm job container image
This commit is contained in:
parent
5d08acf764
commit
6c47c45f6d
@ -2,25 +2,11 @@ name: Container & Helm chart
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
Checkout:
|
||||
runs-on: dind
|
||||
Semantic Release (Dry-run):
|
||||
runs-on: dind-rootless
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v3
|
||||
- name: Store repository as artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: source
|
||||
path: |
|
||||
.
|
||||
Semantic Release (Dry-run):
|
||||
runs-on: dind-rootless
|
||||
needs: Checkout
|
||||
steps:
|
||||
- name: Download repository
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: source
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
@ -57,10 +43,8 @@ jobs:
|
||||
runs-on: dind
|
||||
needs: Semantic Release (Dry-run)
|
||||
steps:
|
||||
- name: Download repository
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: source
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Kaniko build
|
||||
uses: aevea/action-kaniko@master
|
||||
with:
|
||||
@ -71,25 +55,26 @@ jobs:
|
||||
tag: ${{ steps.sem_rel.outputs.version }}
|
||||
|
||||
Helm chart:
|
||||
container: alpine/helm
|
||||
runs-on: dind-rootless
|
||||
needs: Semantic Release (Dry-run)
|
||||
|
||||
steps:
|
||||
- name: Download repository
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: source
|
||||
- name: Checkout
|
||||
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
|
||||
- name: Install helm w/ plugins
|
||||
run: |
|
||||
curl https://baltocdn.com/helm/signing.asc | gpg --dearmor | sudo tee /usr/share/keyrings/helm.gpg > /dev/null
|
||||
apt install apt-transport-https --yes
|
||||
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/helm.gpg] https://baltocdn.com/helm/stable/debian/ all main" | sudo tee /etc/apt/sources.list.d/helm-stable-debian.list
|
||||
apt update && apt install helm --yes
|
||||
helm plugin install https://github.com/chartmuseum/helm-push
|
||||
- name: Package helm chart into archive
|
||||
run: |
|
||||
helm package ./charts/spamasaurusrex
|
||||
- name: Install helm plugin
|
||||
run: |
|
||||
helm plugin install https://github.com/chartmuseum/helm-push
|
||||
- name: Add target helm repository
|
||||
run: |
|
||||
helm repo add \
|
||||
|
Loading…
Reference in New Issue
Block a user