diff --git a/.github/workflows/regenerate-charts.yml b/.github/workflows/regenerate-charts.yml index 2d3012eff..c964dfa39 100644 --- a/.github/workflows/regenerate-charts.yml +++ b/.github/workflows/regenerate-charts.yml @@ -71,5 +71,7 @@ jobs: title: "Chart Update" committer: GitHub author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> - labels: do-not-merge/hold + labels: | + do-not-merge/hold + ok-to-test reviewers: cameronmwall,dislbenn,ngraham20 diff --git a/.github/workflows/regenerate-operator-bundles-2.0.yml b/.github/workflows/regenerate-operator-bundles-2.0.yml index cdff77113..55f84bf5a 100644 --- a/.github/workflows/regenerate-operator-bundles-2.0.yml +++ b/.github/workflows/regenerate-operator-bundles-2.0.yml @@ -78,5 +78,7 @@ jobs: title: "Operator Bundle Update [2.0]" committer: GitHub author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> - labels: do-not-merge/hold + labels: | + do-not-merge/hold + ok-to-test reviewers: cameronmwall,dislbenn,ngraham20 diff --git a/.github/workflows/regenerate-operator-bundles-2.1.yml b/.github/workflows/regenerate-operator-bundles-2.1.yml index 6f0b5ec51..aeeace22d 100644 --- a/.github/workflows/regenerate-operator-bundles-2.1.yml +++ b/.github/workflows/regenerate-operator-bundles-2.1.yml @@ -78,5 +78,7 @@ jobs: title: "Operator Bundle Update [2.1]" committer: GitHub author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> - labels: do-not-merge/hold + labels: | + do-not-merge/hold + ok-to-test reviewers: cameronmwall,dislbenn,ngraham20 diff --git a/.github/workflows/regenerate-operator-bundles-2.2.yml b/.github/workflows/regenerate-operator-bundles-2.2.yml index 43ccc463c..a0c7410d2 100644 --- a/.github/workflows/regenerate-operator-bundles-2.2.yml +++ b/.github/workflows/regenerate-operator-bundles-2.2.yml @@ -78,5 +78,7 @@ jobs: title: "Operator Bundle Update [2.2]" committer: GitHub author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> - labels: do-not-merge/hold + labels: | + do-not-merge/hold + ok-to-test reviewers: cameronmwall,dislbenn,ngraham20 diff --git a/.github/workflows/regenerate-operator-bundles-2.3.yml b/.github/workflows/regenerate-operator-bundles-2.3.yml index 16aa7aa26..2a9986a48 100644 --- a/.github/workflows/regenerate-operator-bundles-2.3.yml +++ b/.github/workflows/regenerate-operator-bundles-2.3.yml @@ -78,5 +78,7 @@ jobs: title: "Operator Bundle Update [2.3]" committer: GitHub author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> - labels: do-not-merge/hold + labels: | + do-not-merge/hold + ok-to-test reviewers: cameronmwall,dislbenn,ngraham20 diff --git a/.github/workflows/regenerate-operator-bundles-2.4.yml b/.github/workflows/regenerate-operator-bundles-2.4.yml index 5f5d275ff..9f0ad8ca0 100644 --- a/.github/workflows/regenerate-operator-bundles-2.4.yml +++ b/.github/workflows/regenerate-operator-bundles-2.4.yml @@ -78,5 +78,7 @@ jobs: title: "Operator Bundle Update [2.4]" committer: GitHub author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> - labels: do-not-merge/hold + labels: | + do-not-merge/hold + ok-to-test reviewers: cameronmwall,dislbenn,ngraham20 diff --git a/.github/workflows/regenerate-operator-bundles-2.5.yml b/.github/workflows/regenerate-operator-bundles-2.5.yml index b5430dab8..53f4f9c40 100644 --- a/.github/workflows/regenerate-operator-bundles-2.5.yml +++ b/.github/workflows/regenerate-operator-bundles-2.5.yml @@ -78,5 +78,7 @@ jobs: title: "Operator Bundle Update [2.5]" committer: GitHub author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> - labels: do-not-merge/hold + labels: | + do-not-merge/hold + ok-to-test reviewers: cameronmwall,dislbenn,ngraham20 diff --git a/.github/workflows/regenerate-operator-bundles-2.7.yml b/.github/workflows/regenerate-operator-bundles-2.7.yml new file mode 100644 index 000000000..a56b1f5d4 --- /dev/null +++ b/.github/workflows/regenerate-operator-bundles-2.7.yml @@ -0,0 +1,84 @@ +# This is a basic workflow to help you get started with Actions + +name: Regenerate 2.7 Operator Bundles + +# Controls when the action will run. +on: + # Runs every day + schedule: + - cron: "0 0 * * *" + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [3.9] + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + with: + token: ${{ secrets.BACKPLANE_TOKEN }} + ref: backplane-2.7 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + # Runs a set of commands using the runners shell + # - name: Lint Operator Bundles + # id: lint_bundle + # run: | + # make lint-operator-bundles + # exit_code=$? + # if [ $exit_code -ne 0 ]; then + # echo "Lint Operator Bundles step failed with exit code $exit_code" + # exit $exit_code + # fi + + # Runs a set of commands using the runners shell + - name: Regenerate Operator Charts From Bundles + id: generate_charts_from_bundles + run: | + make regenerate-charts-from-bundles + exit_code=$? + if [ $exit_code -ne 0 ]; then + echo "Regenerate Operator Charts From Bundles step failed with exit code $exit_code" + exit $exit_code + fi + + - name: Send Slack Message on Failure + if: ${{ failure() }} + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + run: | + SLACK_MESSAGE=":exclamation: *GitHub Actions Job Failed* :exclamation:\n\n" + SLACK_MESSAGE+="Job Name: $GITHUB_WORKFLOW/$GITHUB_JOB\n" + SLACK_MESSAGE+="Job URL: $GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID\n" + SLACK_MESSAGE+="Error Details: Your job failed. Please check the job logs for more information." + + curl -X POST -H "Content-type: application/json" --data "{ + \"text\": \"$SLACK_MESSAGE\" + }" $SLACK_WEBHOOK_URL + + - name: Create Pull Request + uses: peter-evans/create-pull-request@v3 + with: + signoff: true + branch: "regenerate-operator-bundles-2.7" + delete-branch: true + title: "Operator Bundle Update [2.7]" + committer: GitHub + author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> + labels: | + do-not-merge/hold + ok-to-test + reviewers: cameronmwall,dislbenn,ngraham20 diff --git a/.github/workflows/regenerate-sha-commit-2.7.yml b/.github/workflows/regenerate-sha-commit-2.7.yml new file mode 100644 index 000000000..09c1922e1 --- /dev/null +++ b/.github/workflows/regenerate-sha-commit-2.7.yml @@ -0,0 +1,75 @@ +# This is a basic workflow to help you get started with Actions + +name: Regenerate 2.7 Operator SHAs Commits + +# Controls when the action will run. +on: + # Runs every three hours + schedule: + - cron: "0 */6 * * *" + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [3.9] + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + with: + token: ${{ secrets.BACKPLANE_TOKEN }} + ref: backplane-2.7 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + # Runs a set of commands using the runners shell + - name: Regenerate Operator SHAs Commits + id: generate_sha_commit + env: + GH_READ_PAT: ${{ secrets.GH_READ_PAT }} + run: | + make regenerate-operator-sha-commits + exit_code=$? + if [ $exit_code -ne 0 ]; then + echo "Regenerate Operator SHAs Commit step failed with exit code $exit_code" + exit $exit_code + fi + + - name: Send Slack Message on Failure + if: ${{ failure() }} + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + run: | + SLACK_MESSAGE=":exclamation: *GitHub Actions Job Failed* :exclamation:\n\n" + SLACK_MESSAGE+="Job Name: $GITHUB_WORKFLOW/$GITHUB_JOB\n" + SLACK_MESSAGE+="Job URL: $GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID\n" + SLACK_MESSAGE+="Error Details: Your job failed. Please check the job logs for more information." + + curl -X POST -H "Content-type: application/json" --data "{ + \"text\": \"$SLACK_MESSAGE\" + }" $SLACK_WEBHOOK_URL + + - name: Create Pull Request + uses: peter-evans/create-pull-request@v3 + with: + signoff: true + branch: "regenerate-operator-sha-commits-2.7" + delete-branch: true + title: "Operator SHAs Commit Update [2.7]" + committer: GitHub + author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> + labels: | + do-not-merge/hold + ok-to-test + reviewers: cameronmwall,dislbenn,ngraham20