Skip to content

Commit

Permalink
test new tfaga
Browse files Browse the repository at this point in the history
  • Loading branch information
Yi He committed Aug 6, 2024
1 parent 7d22db9 commit edbb197
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 52 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/rhel-95.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
name: RHEL for Edge test on RHEL 9

# on:
# repository_dispatch:
# types: [osbuild-composer-ci]
on:
repository_dispatch:
types: [osbuild-composer-ci]

jobs:
pr-info:
Expand All @@ -27,6 +27,7 @@ jobs:
sha: ${{ fromJson(steps.pr-api.outputs.data).head.sha }}
ref: ${{ fromJson(steps.pr-api.outputs.data).head.ref }}
repo_url: ${{ fromJson(steps.pr-api.outputs.data).head.repo.html_url }}
pr_number: ${{ steps.pr-num.outputs.pr_number }}

edge-rhel-95:
needs: pr-info
Expand All @@ -42,6 +43,10 @@ jobs:
git_url: ${{ needs.pr-info.outputs.repo_url }}
git_ref: ${{ needs.pr-info.outputs.ref }}
github_token: ${{ secrets.PAT }}
repo_owner: osbuild
repo_name: osbuild-composer
pr_number: ${{ needs.pr-info.outputs.pr_number }}
commit_sha: ${{ needs.pr-info.outputs.sha }}
update_pull_request_status: true
tmt_context: "arch=x86_64;distro=rhel-9-5"
pull_request_status_name: "edge-rhel-9.5-x86"
Expand Down
30 changes: 24 additions & 6 deletions .github/workflows/single.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
name: RHEL for Edge test on RHEL 9

on:
repository_dispatch:
types: [osbuild-composer-ci]
# on:
# repository_dispatch:
# types: [osbuild-composer-ci]

jobs:
pr-info:
Expand All @@ -27,26 +27,44 @@ jobs:
sha: ${{ fromJson(steps.pr-api.outputs.data).head.sha }}
ref: ${{ fromJson(steps.pr-api.outputs.data).head.ref }}
repo_url: ${{ fromJson(steps.pr-api.outputs.data).head.repo.html_url }}
pr_number: ${{ steps.pr-num.outputs.pr_number }}

check-outputs:
needs: pr-info
runs-on: ubuntu-latest

steps:
- name: check outputs
id: check-output
run: |
echo "sha is: ${{ needs.pr-info.outputs.sha }}"
echo "ref is: ${{ needs.pr-info.outputs.ref }}"
echo "repo_url is: ${{ needs.pr-info.outputs.repo_url }}"
echo "sender_repo is: ${{ needs.pr-info.outputs.sender_repo }}"
echo "pr_number is: ${{ needs.pr-info.outputs.pr_number }}"
edge-rhel-95:
needs: pr-info
runs-on: ubuntu-latest

steps:
- name: Run the tests
uses: sclorg/testing-farm-as-github-action@main
uses: jamacku/testing-farm-as-github-action@support-nonpr-context
with:
compose: RHEL-9.5.0-Nightly
arch: x86_64
api_key: ${{ secrets.TF_API_KEY }}
git_url: ${{ needs.pr-info.outputs.repo_url }}
git_ref: ${{ needs.pr-info.outputs.ref }}
github_token: ${{ secrets.PAT }}
repo_owner: osbuild
repo_name: osbuild-composer
pr_number: ${{ needs.pr-info.outputs.pr_number }}
commit_sha: ${{ needs.pr-info.outputs.sha }}
update_pull_request_status: true
tmt_context: "arch=x86_64;distro=rhel-9-5"
pull_request_status_name: "edge-rhel-9.5-x86"
tmt_plan_regex: edge-x86-simplified-installer
tmt_plan_regex: edge-x86-commit
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;CI=true;EDGE_USER_PASSWORD=foobar;GIT_COMMIT=${{ needs.pr-info.outputs.sha }}"

43 changes: 0 additions & 43 deletions .github/workflows/test.yml

This file was deleted.

0 comments on commit edbb197

Please sign in to comment.