Skip to content

Commit

Permalink
Update release config hint
Browse files Browse the repository at this point in the history
  • Loading branch information
halamix2 committed Oct 23, 2024
1 parent acedb9a commit a7945cd
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions .github/workflows/promote-to-release-channel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -27,7 +27,6 @@ env:
GH_TOOLS_REPO_URL: ${{ secrets.GH_TOOLS_REPO_URL }}

jobs:

create-tag:
name: Create tag
runs-on: ubuntu-latest
Expand Down Expand Up @@ -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]"
Expand All @@ -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: |
Expand Down

0 comments on commit a7945cd

Please sign in to comment.