Skip to content

Commit

Permalink
[release-v2.9] current last active branch - Validate git pages (#4430)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasSUSE authored Sep 13, 2024
1 parent 4a19238 commit 54ccdf7
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 41 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/charts-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- release-v*

jobs:
build:
checkpoints:
name: Checkpoint 0 - release.yaml validation
runs-on: ubuntu-latest
steps:
Expand Down
39 changes: 39 additions & 0 deletions .github/workflows/git-pages.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Git-Pages

on:
pull_request:
types: [closed]
branches:
- release-v2.9
# This job must be run only in the last active release branch
jobs:
git-pages:
name: Check charts.rancher.io index.yaml
runs-on: ubuntu-latest
steps:
- name: Checkout base branch
uses: actions/checkout@v4

- name: Wait for GitHub Pages update
run: sleep 10 # 10 seconds to purposefully fail so we can test this action

- name: Checkout PR
run: gh pr checkout ${{ github.event.pull_request.number }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Check charts.rancher.io index.yaml
run: make compare-index-files BRANCH=${{ github.event.pull_request.base.ref }}

- name: Notify Slack on Failure
if: failure()
uses: slackapi/[email protected]
with:
channel-id: ${{ secrets.SLACK_CHANNEL_ID }}
slack-message: |
GitHub Pages integrity check failed: ${{ job.status }}
Pull Request Number: ${{ github.event.pull_request.number }}
Pull Request URL: ${{ github.event.pull_request.html_url }}
@Nicholas Paolillo
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ validate:
@./scripts/pull-scripts
@./bin/charts-build-scripts validate $(if $(filter true,$(remote)),--remote) $(if $(filter true,$(local)),--local)

TARGETS := prepare patch clean clean-cache charts list index unzip zip standardize template regsync check-images check-rc enforce-lifecycle lifecycle-status auto-forward-port validate-release-charts
TARGETS := prepare patch clean clean-cache charts list index unzip zip standardize template regsync check-images check-rc enforce-lifecycle lifecycle-status auto-forward-port validate-release-charts compare-index-files

$(TARGETS):
@./scripts/pull-scripts
Expand Down
39 changes: 1 addition & 38 deletions release.yaml
Original file line number Diff line number Diff line change
@@ -1,38 +1 @@
elemental:
- 103.3.1+up1.5.4
elemental-crd:
- 103.3.1+up1.5.4
fleet:
- 103.1.7+up0.9.8
fleet-agent:
- 103.1.7+up0.9.8
fleet-crd:
- 103.1.7+up0.9.8
harvester-csi-driver:
- 103.0.2+up0.1.18
rancher-aks-operator:
- 103.4.0+up1.2.4
rancher-aks-operator-crd:
- 103.4.0+up1.2.4
rancher-backup:
- 103.0.3+up4.0.3
rancher-backup-crd:
- 103.0.3+up4.0.3
rancher-eks-operator:
- 103.4.0+up1.3.4
rancher-eks-operator-crd:
- 103.4.0+up1.3.4
rancher-gke-operator:
- 103.4.0+up1.2.4
rancher-gke-operator-crd:
- 103.4.0+up1.2.4
rancher-logging:
- 103.1.2+up4.4.0
rancher-logging-crd:
- 103.1.2+up4.4.0
rancher-webhook:
- 103.0.9+up0.4.10
rancher-cis-benchmark:
- 5.3.0
rancher-cis-benchmark-crd:
- 5.3.0

2 changes: 1 addition & 1 deletion scripts/version
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
set -e

CHARTS_BUILD_SCRIPTS_REPO=https://github.com/rancher/charts-build-scripts.git
CHARTS_BUILD_SCRIPT_VERSION="${CHARTS_BUILD_SCRIPT_VERSION:-v0.9.9}"
CHARTS_BUILD_SCRIPT_VERSION="${CHARTS_BUILD_SCRIPT_VERSION:-v1.0.0}"

0 comments on commit 54ccdf7

Please sign in to comment.