Skip to content

Commit

Permalink
migrating to self-hosted runners: pull-request.yaml jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasSUSE committed Nov 26, 2024
1 parent f95f717 commit fa6ad9a
Showing 1 changed file with 13 additions and 30 deletions.
43 changes: 13 additions & 30 deletions .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI-pullrequest
name: PR-Checks

on:
pull_request:
Expand All @@ -8,7 +8,7 @@ on:

jobs:
build:
name: Build
name: Validate
runs-on: ubuntu-latest
steps:
- name: Checkout base branch
Expand All @@ -23,44 +23,27 @@ jobs:
run: git checkout -b staging-pr-workflow

- name: Pull scripts
run: sudo make pull-scripts
run: make pull-scripts

- name: Check release.yaml
run: sudo make check-release-yaml
run: make check-release-yaml

- name: Validate
run: sudo make validate remote=true

check-images:
name: Check Container Images
runs-on: ubuntu-latest
steps:
- name: Checkout base branch
uses: actions/checkout@v4

- name: Checkout PR
run: gh pr checkout ${{ github.event.pull_request.number }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
if [[ "${{ github.ref }}" == refs/heads/release-v* ]]; then
echo "Validating remote release branch"
make validate remote=true
else
echo "Validating local branch"
make validate
fi
- name: Check container images
run: make check-images
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}

check-rc:
name: Check RC Images and Charts
runs-on: ubuntu-latest
steps:
- name: Checkout base branch
uses: actions/checkout@v4

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

- name: Check RC images and charts
run: make check-rc
if: startsWith(github.ref, 'refs/heads/release-v')
if: startsWith(github.base_ref, 'refs/heads/release-v')

0 comments on commit fa6ad9a

Please sign in to comment.