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 713e4d7
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 68 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Build

on:
pull_request:
branches:
- dev-v*
- release-v*

jobs:
build:
name: Validate
runs-on: org-${{ github.repository_owner_id }}-linux-k8s
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: Checkout into branch
run: git checkout -b staging-pr-workflow

- name: Pull scripts
run: make pull-scripts

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

- name: Validate
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 }}

- name: Check RC images and charts
run: make check-rc
if: contains(github.base_ref, 'release-v')
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Charts-Release-Validations
name: Checkpoints

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

jobs:
build:
name: Checkpoint 0 - release.yaml validation
name: 1 - release.yaml validation
runs-on: ubuntu-latest
steps:
- name: Checkout base branch
Expand Down
66 changes: 0 additions & 66 deletions .github/workflows/pull-request.yaml

This file was deleted.

0 comments on commit 713e4d7

Please sign in to comment.