Skip to content

Commit

Permalink
ci: move rhel95 test to testing-farm
Browse files Browse the repository at this point in the history
  • Loading branch information
Yi He committed Jul 2, 2024
1 parent eca8d53 commit e081cf2
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions .github/workflows/rhel-95.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
---
name: RHEL for Edge test on RHEL 9

on:
# Triggered by osbuild-composer CI from gitlab
# repository_dispatch:
# types: [osbuild-composer-ci]

jobs:
pr-info:
runs-on: ubuntu-latest
steps:
- name: Get PR number from string PR-xxxx
id: pr-num
run: |
PR_NUM=$(echo "${{ github.event.client_payload.pr_number }}" | cut -d'-' -f 2)
echo "pr_number=$PR_NUM" >> $GITHUB_OUTPUT
- name: Get information for osbuild-composer pull request
uses: octokit/[email protected]
id: pr-api
with:
route: GET /repos/osbuild/osbuild-composer/pulls/${{ steps.pr-num.outputs.pr_number }}
env:
GITHUB_TOKEN: ${{ secrets.PAT }}

outputs:
sha: ${{ fromJson(steps.pr-api.outputs.data).head.sha }}
sender_repo: ${{ fromJson(steps.pr-api.outputs.data).head.repo.full_name }}
sender_branch: ${{ fromJson(steps.pr-api.outputs.data).head.ref }}
sender_url: ${{ fromJson(steps.pr-api.outputs.data).head.repo.html_url }}

edge-rhel-95:
needs: pr-info
runs-on: ubuntu-latest

steps:
- name: Clone repository
uses: actions/checkout@v3
with:
repository: ${{ needs.pr-info.outputs.sender_repo }}
ref: ${{ needs.pr-info.outputs.sender_branch }}
fetch-depth: 0

- name: Run the tests
uses: sclorg/testing-farm-as-github-action@v2
with:
compose: RHEL-9.5.0-Nightly
arch: x86_64
api_key: ${{ secrets.TF_API_KEY }}
git_url: ${{ needs.pr-info.outputs.sender_url }}
git_ref: ${{ needs.pr-info.outputs.sender_branch }}
github_token: ${{ secrets.PAT }}
update_pull_request_status: true
tmt_context: "arch=x86_64;distro=rhel-9-5"
pull_request_status_name: "edge-rhel-9.5"
tmt_plan_regex: edge
tf_scope: private
secrets: "DOWNLOAD_NODE: ${{ secrets.DOWNLOAD_NODE }};V2_QUAY_USERNAME=${{ secrets.V2_QUAY_USERNAME }};V2_QUAY_PASSWORD=${{ secrets.V2_QUAY_PASSWORD }};AWS_ACCESS_KEY_ID=${{ secrets.AWS_ACCESS_KEY_ID }};AWS_SECRET_ACCESS_KEY=${{ secrets.AWS_SECRET_ACCESS_KEY }};GOVC_URL=${{ secrets.GOVC_URL }};GOVC_USERNAME=${{ secrets.GOVC_USERNAME }};GOVC_PASSWORD=${{ secrets.GOVC_PASSWORD }}"
variables: "ARCH=x86_64;AWS_DEFAULT_REGION=us-east-1;GOVC_INSECURE=1;EDGE_USER_PASSWORD=foobar"

0 comments on commit e081cf2

Please sign in to comment.