-
Notifications
You must be signed in to change notification settings - Fork 718
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
migrating to self-hosted runners: pull-request.yaml jobs
- Loading branch information
1 parent
f95f717
commit 713e4d7
Showing
3 changed files
with
51 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.