forked from kyma-project/warden
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
12 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,15 +4,15 @@ on: | |
workflow_dispatch: | ||
inputs: | ||
new_warden_tag: | ||
description: 'New warden tag (`x.x.x`)' | ||
description: "New warden tag (`x.x.x`)" | ||
default: "" | ||
required: true | ||
warden_skr_config_version: | ||
description: 'Warden SKR config version (`y.y`)' | ||
description: "Warden SKR config version (`y.y.y`)" | ||
default: "" | ||
required: true | ||
channel: | ||
description: 'Module channel' | ||
description: "Module channel" | ||
default: "regular" | ||
required: true | ||
|
||
|
@@ -27,7 +27,6 @@ env: | |
GH_TOOLS_REPO_URL: ${{ secrets.GH_TOOLS_REPO_URL }} | ||
|
||
jobs: | ||
|
||
create-tag: | ||
name: Create tag | ||
runs-on: ubuntu-latest | ||
|
@@ -58,24 +57,24 @@ jobs: | |
with: | ||
fetch-depth: 0 | ||
token: ${{ secrets.BOT_TOKEN }} | ||
|
||
- name: Bump sec-scanners-config.yaml | ||
run: ./.github/scripts/upgrade-sec-scanners-config.sh | ||
env: | ||
IMG_VERSION: ${{ github.event.inputs.new_warden_tag }} | ||
|
||
- name: Bump values.yaml | ||
run: | | ||
make replace-chart-images | ||
env: | ||
IMG_DIRECTORY: "prod" | ||
IMG_VERSION: ${{ github.event.inputs.new_warden_tag }} | ||
|
||
- name: Bump chart version | ||
run: ./.github/scripts/upgrade-chart-version.sh | ||
env: | ||
CHART_VERSION: ${{ github.event.inputs.new_warden_tag }} | ||
|
||
- name: Commit&Push | ||
run: | | ||
git config --local user.email "[email protected]" | ||
|
@@ -92,29 +91,29 @@ jobs: | |
name: Render warden with skr config | ||
needs: upgrade-images | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
ref: ${{ github.event.inputs.new_warden_tag }} # fetching tag that was created in previous job | ||
ref: ${{ github.event.inputs.new_warden_tag }} # fetching tag that was created in previous job | ||
|
||
- name: Download warden-SKR-config | ||
run: | | ||
gh release download ${{ github.event.inputs.warden_skr_config_version }} -R "${WARDEN_SKR_OVERRIDES_REPO_URL}" --pattern '*.yaml' --output values.yaml | ||
- name: Render warden manifest for values | ||
run: | | ||
make render-manifest-for-values | ||
echo "==== warden manifest ===" | ||
cat warden.yaml | ||
- name: Render module-config | ||
run: | | ||
make module-config | ||
echo "==== module-config ===" | ||
cat module-config.yaml | ||
cat module-config.yaml | ||
- name: Set up module-manifests repo | ||
run: | | ||
|