some workflow cleanup

This commit is contained in:
kjeld Schouten-Lebbing
2021-09-07 12:11:16 +02:00
parent 5a3b2fd84c
commit 16f4de66c0
+30 -38
View File
@@ -21,7 +21,14 @@ jobs:
container: container:
image: ixsystems/catalog_validation:latest image: ixsystems/catalog_validation:latest
steps: steps:
# Prep # wait and Prep cache
- name: Block concurrent jobs
uses: softprops/turnstyle@v1
with:
continue-after-seconds: 180
env:
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
- name: Cache helm repo cache - name: Cache helm repo cache
id: cache id: cache
uses: actions/cache@v2 uses: actions/cache@v2
@@ -31,20 +38,28 @@ jobs:
~/.cache/helm/repository ~/.cache/helm/repository
~/.config/helm/repositories.yaml ~/.config/helm/repositories.yaml
- name: Block concurrent jobs # Checkout repo's
uses: softprops/turnstyle@v1 - name: Checkout
uses: actions/checkout@v2
with: with:
continue-after-seconds: 180 fetch-depth: 0
env: token: ${{ secrets.BOT_TOKEN }}
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
- name: Configure Git - name: Configure Git
run: | run: |
git config user.name "TrueCharts-Bot" git config user.name "TrueCharts-Bot"
git config user.email "bot@truecharts.org" git config user.email "bot@truecharts.org"
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
repository: truecharts/catalog
token: ${{ secrets.BOT_TOKEN }}
path: catalog
# Setup Helm
- name: Install Helm - name: Install Helm
uses: azure/setup-helm@v1 uses: azure/setup-helm@v1
with: with:
@@ -57,29 +72,17 @@ jobs:
helm repo add bitnami https://charts.bitnami.com/bitnami helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo update helm repo update
# Checkout repo's # HELM Release
- name: Block concurrent jobs
uses: softprops/turnstyle@v1 - name: Run chart-releaser
uses: helm/chart-releaser-action@v1.2.1
with: with:
continue-after-seconds: 180 config: .github/cr.yaml
charts_dir: charts/*
env: env:
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }} CR_TOKEN: "${{ secrets.BOT_TOKEN }}"
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
token: ${{ secrets.BOT_TOKEN }}
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
repository: truecharts/catalog
token: ${{ secrets.BOT_TOKEN }}
path: catalog
# SCALE Release
- name: fetch dependencies - name: fetch dependencies
run: | run: |
for train in stable incubator for train in stable incubator
@@ -93,17 +96,6 @@ jobs:
done done
done done
# HELM Release
- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.2.1
with:
config: .github/cr.yaml
charts_dir: charts/*
env:
CR_TOKEN: "${{ secrets.BOT_TOKEN }}"
# SCALE Release
- name: Remove if release already exists - name: Remove if release already exists
run: | run: |
for train in stable incubator for train in stable incubator