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 a7b6c28
Showing 1 changed file with 5 additions and 26 deletions.
31 changes: 5 additions & 26 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,23 @@ 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

- 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 }}
- name: Reset changes
run: git reset --hard HEAD

- 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')

0 comments on commit a7b6c28

Please sign in to comment.