osbuild-composer-ci #1283
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
--- | |
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 }} | |
pre-edge-commit-9: | |
needs: pr-info | |
runs-on: ubuntu-latest | |
env: | |
STATUS_NAME: Tests / edge-commit-9 | |
steps: | |
- name: Get Current Job Log URL | |
id: job-log-url | |
run: | | |
JOB_HTML_URL=$(curl --get -Ss -H "Authorization: token ${GITHUB_TOKEN}" -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/osbuild/rhel-edge-ci/actions/runs/${GITHUB_RUN_ID}/jobs?per_page=30" | jq -r --arg job_name "pre-edge-commit-9" '.jobs | map(select(.name == "pre-edge-commit-9")) | .[0].html_url') | |
echo "html_url=$JOB_HTML_URL" >> $GITHUB_OUTPUT | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create in-progress status | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: pending | |
description: 'RHEL 9.4 - Runner has been deploying...' | |
target_url: '${{ steps.job-log-url.outputs.html_url }}' | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
edge-commit-9: | |
needs: [pr-info, pre-edge-commit-9] | |
runs-on: [kite, x86_64, rhos-0x, rhel-9-4, large] | |
timeout-minutes: 90 | |
env: | |
STATUS_NAME: Tests / edge-commit-9 | |
steps: | |
- name: Get Current Job Log URL | |
id: job-log-url | |
run: | | |
sudo dnf install -y jq | |
JOB_HTML_URL=$(curl --get -Ss -H "Authorization: token ${GITHUB_TOKEN}" -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/osbuild/rhel-edge-ci/actions/runs/${GITHUB_RUN_ID}/jobs?per_page=30" | jq -r --arg job_name "edge-commit-9" '.jobs | map(select(.name == "edge-commit-9")) | .[0].html_url') | |
echo "html_url=$JOB_HTML_URL" >> $GITHUB_OUTPUT | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create in-progress status | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: pending | |
description: 'RHEL 9.4 - Test has been running...' | |
target_url: ${{ steps.job-log-url.outputs.html_url }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
- 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: Make a deployment | |
run: schutzbot/deploy.sh | |
env: | |
GIT_COMMIT: ${{ needs.pr-info.outputs.sha }} | |
timeout-minutes: 20 | |
- name: run ostree.sh | |
run: /usr/libexec/tests/osbuild-composer/ostree.sh | |
# add more time due to bug https://github.com/pulp/pulp_ostree/issues/289 | |
timeout-minutes: 120 | |
- name: Set non cancelled result status | |
if: ${{ !cancelled() }} | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: ${{ job.status }} | |
description: 'RHEL 9.4 - Test got ${{ job.status }}' | |
target_url: ${{ steps.job-log-url.outputs.html_url }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
- name: Set cancelled result status | |
if: ${{ cancelled() }} | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: error | |
description: 'RHEL 9.4 - Test got error' | |
target_url: ${{ steps.job-log-url.outputs.html_url }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
- uses: actions/upload-artifact@v3 | |
if: ${{ always() }} | |
with: | |
name: edge-commit-9 | |
path: | | |
/tmp/artifacts/*.json | |
/tmp/artifacts/*.log | |
pre-edge-installer-9: | |
needs: pr-info | |
runs-on: ubuntu-latest | |
env: | |
STATUS_NAME: Tests / edge-installer-9 | |
steps: | |
- name: Get Current Job Log URL | |
id: job-log-url | |
run: | | |
JOB_HTML_URL=$(curl --get -Ss -H "Authorization: token ${GITHUB_TOKEN}" -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/osbuild/rhel-edge-ci/actions/runs/${GITHUB_RUN_ID}/jobs?per_page=30" | jq -r --arg job_name "pre-edge-installer-9" '.jobs | map(select(.name == "pre-edge-installer-9")) | .[0].html_url') | |
echo "html_url=$JOB_HTML_URL" >> $GITHUB_OUTPUT | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create in-progress status | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: pending | |
description: 'RHEL 9.4 - Runner has been deploying...' | |
target_url: '${{ steps.job-log-url.outputs.html_url }}' | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
edge-installer-9: | |
needs: [pr-info, pre-edge-installer-9] | |
runs-on: [kite, x86_64, rhos-0x, rhel-9-4, large] | |
timeout-minutes: 130 | |
env: | |
STATUS_NAME: Tests / edge-installer-9 | |
steps: | |
- name: Get Current Job Log URL | |
id: job-log-url | |
run: | | |
sudo dnf install -y jq | |
JOB_HTML_URL=$(curl --get -Ss -H "Authorization: token ${GITHUB_TOKEN}" -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/osbuild/rhel-edge-ci/actions/runs/${GITHUB_RUN_ID}/jobs?per_page=30" | jq -r --arg job_name "edge-installer-9" '.jobs | map(select(.name == "edge-installer-9")) | .[0].html_url') | |
echo "html_url=$JOB_HTML_URL" >> $GITHUB_OUTPUT | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create in-progress status | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: pending | |
description: 'RHEL 9.4 - Test has been running...' | |
target_url: ${{ steps.job-log-url.outputs.html_url }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
- 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: Make a deployment | |
run: schutzbot/deploy.sh | |
env: | |
GIT_COMMIT: ${{ needs.pr-info.outputs.sha }} | |
timeout-minutes: 20 | |
- name: run ostree-ng.sh | |
run: /usr/libexec/tests/osbuild-composer/ostree-ng.sh | |
env: | |
V2_QUAY_USERNAME: ${{ secrets.V2_QUAY_USERNAME }} | |
V2_QUAY_PASSWORD: ${{ secrets.V2_QUAY_PASSWORD }} | |
timeout-minutes: 90 | |
- name: Set non cancelled result status | |
if: ${{ !cancelled() }} | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: ${{ job.status }} | |
description: 'RHEL 9.4 - Test got ${{ job.status }}' | |
target_url: ${{ steps.job-log-url.outputs.html_url }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
- name: Set cancelled result status | |
if: ${{ cancelled() }} | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: error | |
description: 'RHEL 9.4 - Test got error' | |
target_url: ${{ steps.job-log-url.outputs.html_url }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
- uses: actions/upload-artifact@v3 | |
if: ${{ always() }} | |
with: | |
name: edge-installer-9 | |
path: | | |
/tmp/artifacts/*.json | |
/tmp/artifacts/*.log | |
pre-edge-installer-9-fips: | |
needs: pr-info | |
runs-on: ubuntu-latest | |
env: | |
STATUS_NAME: Tests / edge-installer-9-fips | |
steps: | |
- name: Get Current Job Log URL | |
id: job-log-url | |
run: | | |
JOB_HTML_URL=$(curl --get -Ss -H "Authorization: token ${GITHUB_TOKEN}" -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/osbuild/rhel-edge-ci/actions/runs/${GITHUB_RUN_ID}/jobs?per_page=30" | jq -r --arg job_name "pre-edge-installer-9-fips" '.jobs | map(select(.name == "pre-edge-installer-9-fips")) | .[0].html_url') | |
echo "html_url=$JOB_HTML_URL" >> $GITHUB_OUTPUT | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create in-progress status | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: pending | |
description: 'RHEL 9.4 - Runner has been deploying...' | |
target_url: '${{ steps.job-log-url.outputs.html_url }}' | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
edge-installer-9-fips: | |
needs: [pr-info, pre-edge-installer-9-fips] | |
runs-on: [kite, x86_64, rhos-0x, rhel-9-4, large] | |
timeout-minutes: 130 | |
env: | |
STATUS_NAME: Tests / edge-installer-9-fips | |
steps: | |
- name: Get Current Job Log URL | |
id: job-log-url | |
run: | | |
sudo dnf install -y jq | |
JOB_HTML_URL=$(curl --get -Ss -H "Authorization: token ${GITHUB_TOKEN}" -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/osbuild/rhel-edge-ci/actions/runs/${GITHUB_RUN_ID}/jobs?per_page=30" | jq -r --arg job_name "edge-installer-9-fips" '.jobs | map(select(.name == "edge-installer-9-fips")) | .[0].html_url') | |
echo "html_url=$JOB_HTML_URL" >> $GITHUB_OUTPUT | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create in-progress status | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: pending | |
description: 'RHEL 9.4 - Test has been running...' | |
target_url: ${{ steps.job-log-url.outputs.html_url }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
- 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: Make a deployment | |
run: schutzbot/deploy.sh | |
env: | |
GIT_COMMIT: ${{ needs.pr-info.outputs.sha }} | |
timeout-minutes: 20 | |
- name: run ostree-ng.sh | |
run: /usr/libexec/tests/osbuild-composer/ostree-ng.sh | |
env: | |
V2_QUAY_USERNAME: ${{ secrets.V2_QUAY_USERNAME }} | |
V2_QUAY_PASSWORD: ${{ secrets.V2_QUAY_PASSWORD }} | |
FIPS: true | |
timeout-minutes: 90 | |
- name: Set non cancelled result status | |
if: ${{ !cancelled() }} | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: ${{ job.status }} | |
description: 'RHEL 9.4 - Test got ${{ job.status }}' | |
target_url: ${{ steps.job-log-url.outputs.html_url }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
- name: Set cancelled result status | |
if: ${{ cancelled() }} | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: error | |
description: 'RHEL 9.4 - Test got error' | |
target_url: ${{ steps.job-log-url.outputs.html_url }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
- uses: actions/upload-artifact@v3 | |
if: ${{ always() }} | |
with: | |
name: edge-installer-9-fips | |
path: | | |
/tmp/artifacts/*.json | |
/tmp/artifacts/*.log | |
pre-edge-raw-9: | |
needs: pr-info | |
runs-on: ubuntu-latest | |
env: | |
STATUS_NAME: Tests / edge-raw-9 | |
steps: | |
- name: Get Current Job Log URL | |
id: job-log-url | |
run: | | |
JOB_HTML_URL=$(curl --get -Ss -H "Authorization: token ${GITHUB_TOKEN}" -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/osbuild/rhel-edge-ci/actions/runs/${GITHUB_RUN_ID}/jobs?per_page=30" | jq -r --arg job_name "pre-edge-raw-9" '.jobs | map(select(.name == "pre-edge-raw-9")) | .[0].html_url') | |
echo "html_url=$JOB_HTML_URL" >> $GITHUB_OUTPUT | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create in-progress status | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: pending | |
description: 'RHEL 9.4 - Runner has been deploying...' | |
target_url: '${{ steps.job-log-url.outputs.html_url }}' | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
edge-raw-9: | |
needs: [pr-info, pre-edge-raw-9] | |
runs-on: [kite, x86_64, rhos-0x, rhel-9-4, large] | |
timeout-minutes: 130 | |
env: | |
STATUS_NAME: Tests / edge-raw-9 | |
steps: | |
- name: Get Current Job Log URL | |
id: job-log-url | |
run: | | |
sudo dnf install -y jq | |
JOB_HTML_URL=$(curl --get -Ss -H "Authorization: token ${GITHUB_TOKEN}" -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/osbuild/rhel-edge-ci/actions/runs/${GITHUB_RUN_ID}/jobs?per_page=30" | jq -r --arg job_name "edge-raw-9" '.jobs | map(select(.name == "edge-raw-9")) | .[0].html_url') | |
echo "html_url=$JOB_HTML_URL" >> $GITHUB_OUTPUT | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create in-progress status | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: pending | |
description: 'RHEL 9.4 - Test has been running...' | |
target_url: ${{ steps.job-log-url.outputs.html_url }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
- 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: Make a deployment | |
run: schutzbot/deploy.sh | |
env: | |
GIT_COMMIT: ${{ needs.pr-info.outputs.sha }} | |
timeout-minutes: 20 | |
- name: run ostree-raw-image.sh | |
run: /usr/libexec/tests/osbuild-composer/ostree-raw-image.sh | |
env: | |
EDGE_USER_PASSWORD: foobar | |
timeout-minutes: 90 | |
- name: Set non cancelled result status | |
if: ${{ !cancelled() }} | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: ${{ job.status }} | |
description: 'RHEL 9.4 - Test got ${{ job.status }}' | |
target_url: ${{ steps.job-log-url.outputs.html_url }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
- name: Set cancelled result status | |
if: ${{ cancelled() }} | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: error | |
description: 'RHEL 9.4 - Test got error' | |
target_url: ${{ steps.job-log-url.outputs.html_url }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
- uses: actions/upload-artifact@v3 | |
if: ${{ always() }} | |
with: | |
name: edge-raw-9 | |
path: | | |
/tmp/artifacts/*.json | |
/tmp/artifacts/*.log | |
pre-edge-raw-9-fips: | |
needs: pr-info | |
runs-on: ubuntu-latest | |
env: | |
STATUS_NAME: Tests / edge-raw-9-fips | |
steps: | |
- name: Get Current Job Log URL | |
id: job-log-url | |
run: | | |
JOB_HTML_URL=$(curl --get -Ss -H "Authorization: token ${GITHUB_TOKEN}" -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/osbuild/rhel-edge-ci/actions/runs/${GITHUB_RUN_ID}/jobs?per_page=30" | jq -r --arg job_name "pre-edge-raw-9-fips" '.jobs | map(select(.name == "pre-edge-raw-9-fips")) | .[0].html_url') | |
echo "html_url=$JOB_HTML_URL" >> $GITHUB_OUTPUT | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create in-progress status | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: pending | |
description: 'RHEL 9.4 - Runner has been deploying...' | |
target_url: '${{ steps.job-log-url.outputs.html_url }}' | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
edge-raw-9-fips: | |
needs: [pr-info, pre-edge-raw-9-fips] | |
runs-on: [kite, x86_64, rhos-0x, rhel-9-4, large] | |
timeout-minutes: 130 | |
env: | |
STATUS_NAME: Tests / edge-raw-9-fips | |
steps: | |
- name: Get Current Job Log URL | |
id: job-log-url | |
run: | | |
sudo dnf install -y jq | |
JOB_HTML_URL=$(curl --get -Ss -H "Authorization: token ${GITHUB_TOKEN}" -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/osbuild/rhel-edge-ci/actions/runs/${GITHUB_RUN_ID}/jobs?per_page=30" | jq -r --arg job_name "edge-raw-9-fips" '.jobs | map(select(.name == "edge-raw-9-fips")) | .[0].html_url') | |
echo "html_url=$JOB_HTML_URL" >> $GITHUB_OUTPUT | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create in-progress status | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: pending | |
description: 'RHEL 9.4 - Test has been running...' | |
target_url: ${{ steps.job-log-url.outputs.html_url }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
- 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: Make a deployment | |
run: schutzbot/deploy.sh | |
env: | |
GIT_COMMIT: ${{ needs.pr-info.outputs.sha }} | |
timeout-minutes: 20 | |
- name: run ostree-raw-image.sh | |
run: /usr/libexec/tests/osbuild-composer/ostree-raw-image.sh | |
env: | |
EDGE_USER_PASSWORD: foobar | |
FIPS: true | |
timeout-minutes: 90 | |
- name: Set non cancelled result status | |
if: ${{ !cancelled() }} | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: ${{ job.status }} | |
description: 'RHEL 9.4 - Test got ${{ job.status }}' | |
target_url: ${{ steps.job-log-url.outputs.html_url }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
- name: Set cancelled result status | |
if: ${{ cancelled() }} | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: error | |
description: 'RHEL 9.4 - Test got error' | |
target_url: ${{ steps.job-log-url.outputs.html_url }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
- uses: actions/upload-artifact@v3 | |
if: ${{ always() }} | |
with: | |
name: edge-raw-9-fips | |
path: | | |
/tmp/artifacts/*.json | |
/tmp/artifacts/*.log | |
pre-edge-simplified-9: | |
needs: pr-info | |
runs-on: ubuntu-latest | |
env: | |
STATUS_NAME: Tests / edge-simplified-9 | |
steps: | |
- name: Get Current Job Log URL | |
id: job-log-url | |
run: | | |
JOB_HTML_URL=$(curl --get -Ss -H "Authorization: token ${GITHUB_TOKEN}" -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/osbuild/rhel-edge-ci/actions/runs/${GITHUB_RUN_ID}/jobs?per_page=30" | jq -r --arg job_name "pre-edge-simplified-9" '.jobs | map(select(.name == "pre-edge-simplified-9")) | .[0].html_url') | |
echo "html_url=$JOB_HTML_URL" >> $GITHUB_OUTPUT | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create in-progress status | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: pending | |
description: 'RHEL 9.4 - Runner has been deploying...' | |
target_url: '${{ steps.job-log-url.outputs.html_url }}' | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
edge-simplified-9: | |
needs: [pr-info, pre-edge-simplified-9] | |
runs-on: [kite, x86_64, rhos-0x, rhel-9-4, large] | |
timeout-minutes: 160 | |
env: | |
STATUS_NAME: Tests / edge-simplified-9 | |
steps: | |
- name: Get Current Job Log URL | |
id: job-log-url | |
run: | | |
sudo dnf install -y jq | |
JOB_HTML_URL=$(curl --get -Ss -H "Authorization: token ${GITHUB_TOKEN}" -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/osbuild/rhel-edge-ci/actions/runs/${GITHUB_RUN_ID}/jobs?per_page=30" | jq -r --arg job_name "edge-simplified-9" '.jobs | map(select(.name == "edge-simplified-9")) | .[0].html_url') | |
echo "html_url=$JOB_HTML_URL" >> $GITHUB_OUTPUT | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create in-progress status | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: pending | |
description: 'RHEL 9.4 - Test has been running...' | |
target_url: ${{ steps.job-log-url.outputs.html_url }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
- 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: Make a deployment | |
run: schutzbot/deploy.sh | |
env: | |
GIT_COMMIT: ${{ needs.pr-info.outputs.sha }} | |
timeout-minutes: 20 | |
- name: run ostree-simplified-installer.sh | |
run: /usr/libexec/tests/osbuild-composer/ostree-simplified-installer.sh | |
env: | |
EDGE_USER_PASSWORD: foobar | |
timeout-minutes: 150 | |
- name: Set non cancelled result status | |
if: ${{ !cancelled() }} | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: ${{ job.status }} | |
description: 'RHEL 9.4 - Test got ${{ job.status }}' | |
target_url: ${{ steps.job-log-url.outputs.html_url }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
- name: Set cancelled result status | |
if: ${{ cancelled() }} | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: error | |
description: 'RHEL 9.4 - Test got error' | |
target_url: ${{ steps.job-log-url.outputs.html_url }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
- uses: actions/upload-artifact@v3 | |
if: ${{ always() }} | |
with: | |
name: edge-simplified-9 | |
path: | | |
/tmp/artifacts/*.json | |
/tmp/artifacts/*.log | |
pre-edge-simplified-9-fips: | |
needs: pr-info | |
runs-on: ubuntu-latest | |
env: | |
STATUS_NAME: Tests / edge-simplified-9-fips | |
steps: | |
- name: Get Current Job Log URL | |
id: job-log-url | |
run: | | |
JOB_HTML_URL=$(curl --get -Ss -H "Authorization: token ${GITHUB_TOKEN}" -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/osbuild/rhel-edge-ci/actions/runs/${GITHUB_RUN_ID}/jobs?per_page=30" | jq -r --arg job_name "pre-edge-simplified-9-fips" '.jobs | map(select(.name == "pre-edge-simplified-9-fips")) | .[0].html_url') | |
echo "html_url=$JOB_HTML_URL" >> $GITHUB_OUTPUT | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create in-progress status | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: pending | |
description: 'RHEL 9.4 - Runner has been deploying...' | |
target_url: '${{ steps.job-log-url.outputs.html_url }}' | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
edge-simplified-9-fips: | |
needs: [pr-info, pre-edge-simplified-9-fips] | |
runs-on: [kite, x86_64, rhos-0x, rhel-9-4, large] | |
timeout-minutes: 160 | |
env: | |
STATUS_NAME: Tests / edge-simplified-9-fips | |
steps: | |
- name: Get Current Job Log URL | |
id: job-log-url | |
run: | | |
sudo dnf install -y jq | |
JOB_HTML_URL=$(curl --get -Ss -H "Authorization: token ${GITHUB_TOKEN}" -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/osbuild/rhel-edge-ci/actions/runs/${GITHUB_RUN_ID}/jobs?per_page=30" | jq -r --arg job_name "edge-simplified-9-fips" '.jobs | map(select(.name == "edge-simplified-9-fips")) | .[0].html_url') | |
echo "html_url=$JOB_HTML_URL" >> $GITHUB_OUTPUT | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create in-progress status | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: pending | |
description: 'RHEL 9.4 - Test has been running...' | |
target_url: ${{ steps.job-log-url.outputs.html_url }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
- 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: Make a deployment | |
run: schutzbot/deploy.sh | |
env: | |
GIT_COMMIT: ${{ needs.pr-info.outputs.sha }} | |
timeout-minutes: 20 | |
- name: run ostree-simplified-installer.sh | |
run: /usr/libexec/tests/osbuild-composer/ostree-simplified-installer.sh | |
env: | |
EDGE_USER_PASSWORD: foobar | |
FIPS: true | |
timeout-minutes: 150 | |
- name: Set non cancelled result status | |
if: ${{ !cancelled() }} | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: ${{ job.status }} | |
description: 'RHEL 9.4 - Test got ${{ job.status }}' | |
target_url: ${{ steps.job-log-url.outputs.html_url }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
- name: Set cancelled result status | |
if: ${{ cancelled() }} | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: error | |
description: 'RHEL 9.4 - Test got error' | |
target_url: ${{ steps.job-log-url.outputs.html_url }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
- uses: actions/upload-artifact@v3 | |
if: ${{ always() }} | |
with: | |
name: edge-simplified-9-fips | |
path: | | |
/tmp/artifacts/*.json | |
/tmp/artifacts/*.log | |
pre-edge-ignition-9: | |
needs: pr-info | |
runs-on: ubuntu-latest | |
env: | |
STATUS_NAME: Tests / edge-ignition-9 | |
steps: | |
- name: Get Current Job Log URL | |
id: job-log-url | |
run: | | |
JOB_HTML_URL=$(curl --get -Ss -H "Authorization: token ${GITHUB_TOKEN}" -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/osbuild/rhel-edge-ci/actions/runs/${GITHUB_RUN_ID}/jobs?per_page=30" | jq -r --arg job_name "pre-edge-ignition-9" '.jobs | map(select(.name == "pre-edge-ignition-9")) | .[0].html_url') | |
echo "html_url=$JOB_HTML_URL" >> $GITHUB_OUTPUT | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create in-progress status | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: pending | |
description: 'RHEL 9.4 - Runner has been deploying...' | |
target_url: '${{ steps.job-log-url.outputs.html_url }}' | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
edge-ignition-9: | |
needs: [pr-info, pre-edge-ignition-9] | |
runs-on: [kite, x86_64, rhos-0x, rhel-9-4, large] | |
timeout-minutes: 160 | |
env: | |
STATUS_NAME: Tests / edge-ignition-9 | |
steps: | |
- name: Get Current Job Log URL | |
id: job-log-url | |
run: | | |
sudo dnf install -y jq | |
JOB_HTML_URL=$(curl --get -Ss -H "Authorization: token ${GITHUB_TOKEN}" -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/osbuild/rhel-edge-ci/actions/runs/${GITHUB_RUN_ID}/jobs?per_page=30" | jq -r --arg job_name "edge-ignition-9" '.jobs | map(select(.name == "edge-ignition-9")) | .[0].html_url') | |
echo "html_url=$JOB_HTML_URL" >> $GITHUB_OUTPUT | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create in-progress status | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: pending | |
description: 'RHEL 9.4 - Test has been running...' | |
target_url: ${{ steps.job-log-url.outputs.html_url }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
- 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: Make a deployment | |
run: schutzbot/deploy.sh | |
env: | |
GIT_COMMIT: ${{ needs.pr-info.outputs.sha }} | |
timeout-minutes: 20 | |
- name: run ostree-ignition.sh | |
run: /usr/libexec/tests/osbuild-composer/ostree-ignition.sh | |
timeout-minutes: 120 | |
- name: Set non cancelled result status | |
if: ${{ !cancelled() }} | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: ${{ job.status }} | |
description: 'RHEL 9.4 - Test got ${{ job.status }}' | |
target_url: ${{ steps.job-log-url.outputs.html_url }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
- name: Set cancelled result status | |
if: ${{ cancelled() }} | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: error | |
description: 'RHEL 9.4 - Test got error' | |
target_url: ${{ steps.job-log-url.outputs.html_url }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
- uses: actions/upload-artifact@v3 | |
if: ${{ always() }} | |
with: | |
name: edge-ignition-9 | |
path: | | |
/tmp/artifacts/*.json | |
/tmp/artifacts/*.log | |
pre-edge-ami-9: | |
needs: pr-info | |
runs-on: ubuntu-latest | |
env: | |
STATUS_NAME: Tests / edge-ami-9 | |
steps: | |
- name: Get Current Job Log URL | |
id: job-log-url | |
run: | | |
JOB_HTML_URL=$(curl --get -Ss -H "Authorization: token ${GITHUB_TOKEN}" -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/osbuild/rhel-edge-ci/actions/runs/${GITHUB_RUN_ID}/jobs?per_page=30" | jq -r --arg job_name "pre-edge-ami-9" '.jobs | map(select(.name == "pre-edge-ami-9")) | .[0].html_url') | |
echo "html_url=$JOB_HTML_URL" >> $GITHUB_OUTPUT | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create in-progress status | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: pending | |
description: 'RHEL 9.4 - Runner has been deploying...' | |
target_url: '${{ steps.job-log-url.outputs.html_url }}' | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
edge-ami-9: | |
needs: [pr-info, pre-edge-ami-9] | |
runs-on: [kite, x86_64, rhos-0x, rhel-9-4, large] | |
timeout-minutes: 130 | |
env: | |
STATUS_NAME: Tests / edge-ami-9 | |
steps: | |
- name: Get Current Job Log URL | |
id: job-log-url | |
run: | | |
sudo dnf install -y jq | |
JOB_HTML_URL=$(curl --get -Ss -H "Authorization: token ${GITHUB_TOKEN}" -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/osbuild/rhel-edge-ci/actions/runs/${GITHUB_RUN_ID}/jobs?per_page=30" | jq -r --arg job_name "edge-ami-9" '.jobs | map(select(.name == "edge-ami-9")) | .[0].html_url') | |
echo "html_url=$JOB_HTML_URL" >> $GITHUB_OUTPUT | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create in-progress status | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: pending | |
description: 'RHEL 9.4 - Test has been running...' | |
target_url: ${{ steps.job-log-url.outputs.html_url }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
- 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: Make a deployment | |
run: schutzbot/deploy.sh | |
env: | |
GIT_COMMIT: ${{ needs.pr-info.outputs.sha }} | |
timeout-minutes: 20 | |
- name: run ostree-ami-image.sh | |
run: /usr/libexec/tests/osbuild-composer/ostree-ami-image.sh | |
env: | |
EDGE_USER_PASSWORD: foobar | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
AWS_DEFAULT_REGION: us-east-1 | |
timeout-minutes: 90 | |
- name: Set non cancelled result status | |
if: ${{ !cancelled() }} | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: ${{ job.status }} | |
description: 'RHEL 9.4 - Test got ${{ job.status }}' | |
target_url: ${{ steps.job-log-url.outputs.html_url }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
- name: Set cancelled result status | |
if: ${{ cancelled() }} | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: error | |
description: 'RHEL 9.4 - Test got error' | |
target_url: ${{ steps.job-log-url.outputs.html_url }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
- uses: actions/upload-artifact@v3 | |
if: ${{ always() }} | |
with: | |
name: edge-ami-9 | |
path: | | |
/tmp/artifacts/*.json | |
/tmp/artifacts/*.log | |
pre-edge-ami-9-fips: | |
needs: pr-info | |
runs-on: ubuntu-latest | |
env: | |
STATUS_NAME: Tests / edge-ami-9-fips | |
steps: | |
- name: Get Current Job Log URL | |
id: job-log-url | |
run: | | |
JOB_HTML_URL=$(curl --get -Ss -H "Authorization: token ${GITHUB_TOKEN}" -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/osbuild/rhel-edge-ci/actions/runs/${GITHUB_RUN_ID}/jobs?per_page=30" | jq -r --arg job_name "pre-edge-ami-9-fips" '.jobs | map(select(.name == "pre-edge-ami-9-fips")) | .[0].html_url') | |
echo "html_url=$JOB_HTML_URL" >> $GITHUB_OUTPUT | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create in-progress status | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: pending | |
description: 'RHEL 9.4 - Runner has been deploying...' | |
target_url: '${{ steps.job-log-url.outputs.html_url }}' | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
edge-ami-9-fips: | |
needs: [pr-info, pre-edge-ami-9-fips] | |
runs-on: [kite, x86_64, rhos-0x, rhel-9-4, large] | |
timeout-minutes: 130 | |
env: | |
STATUS_NAME: Tests / edge-ami-9-fips | |
steps: | |
- name: Get Current Job Log URL | |
id: job-log-url | |
run: | | |
sudo dnf install -y jq | |
JOB_HTML_URL=$(curl --get -Ss -H "Authorization: token ${GITHUB_TOKEN}" -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/osbuild/rhel-edge-ci/actions/runs/${GITHUB_RUN_ID}/jobs?per_page=30" | jq -r --arg job_name "edge-ami-9-fips" '.jobs | map(select(.name == "edge-ami-9-fips")) | .[0].html_url') | |
echo "html_url=$JOB_HTML_URL" >> $GITHUB_OUTPUT | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create in-progress status | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: pending | |
description: 'RHEL 9.4 - Test has been running...' | |
target_url: ${{ steps.job-log-url.outputs.html_url }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
- 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: Make a deployment | |
run: schutzbot/deploy.sh | |
env: | |
GIT_COMMIT: ${{ needs.pr-info.outputs.sha }} | |
timeout-minutes: 20 | |
- name: run ostree-ami-image.sh | |
run: /usr/libexec/tests/osbuild-composer/ostree-ami-image.sh | |
env: | |
EDGE_USER_PASSWORD: foobar | |
FIPS: true | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
AWS_DEFAULT_REGION: us-east-1 | |
timeout-minutes: 90 | |
- name: Set non cancelled result status | |
if: ${{ !cancelled() }} | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: ${{ job.status }} | |
description: 'RHEL 9.4 - Test got ${{ job.status }}' | |
target_url: ${{ steps.job-log-url.outputs.html_url }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
- name: Set cancelled result status | |
if: ${{ cancelled() }} | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: error | |
description: 'RHEL 9.4 - Test got error' | |
target_url: ${{ steps.job-log-url.outputs.html_url }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
- uses: actions/upload-artifact@v3 | |
if: ${{ always() }} | |
with: | |
name: edge-ami-9-fips | |
path: | | |
/tmp/artifacts/*.json | |
/tmp/artifacts/*.log | |
pre-edge-minimal-raw-9: | |
needs: pr-info | |
runs-on: ubuntu-latest | |
env: | |
STATUS_NAME: Tests / edge-minimal-raw-9 | |
steps: | |
- name: Get Current Job Log URL | |
id: job-log-url | |
run: | | |
JOB_HTML_URL=$(curl --get -Ss -H "Authorization: token ${GITHUB_TOKEN}" -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/osbuild/rhel-edge-ci/actions/runs/${GITHUB_RUN_ID}/jobs?per_page=30" | jq -r --arg job_name "pre-edge-minimal-raw-9" '.jobs | map(select(.name == "pre-edge-minimal-raw-9")) | .[0].html_url') | |
echo "html_url=$JOB_HTML_URL" >> $GITHUB_OUTPUT | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create in-progress status | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: pending | |
description: 'RHEL 9.4 - Runner has been deploying...' | |
target_url: '${{ steps.job-log-url.outputs.html_url }}' | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
edge-minimal-raw-9: | |
needs: [pr-info, pre-edge-minimal-raw-9] | |
runs-on: [kite, x86_64, rhos-0x, rhel-9-4, large] | |
timeout-minutes: 100 | |
env: | |
STATUS_NAME: Tests / edge-minimal-raw-9 | |
steps: | |
- name: Get Current Job Log URL | |
id: job-log-url | |
run: | | |
sudo dnf install -y jq | |
JOB_HTML_URL=$(curl --get -Ss -H "Authorization: token ${GITHUB_TOKEN}" -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/osbuild/rhel-edge-ci/actions/runs/${GITHUB_RUN_ID}/jobs?per_page=30" | jq -r --arg job_name "edge-minimal-raw-9" '.jobs | map(select(.name == "edge-minimal-raw-9")) | .[0].html_url') | |
echo "html_url=$JOB_HTML_URL" >> $GITHUB_OUTPUT | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create in-progress status | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: pending | |
description: 'RHEL 9.4 - Test has been running...' | |
target_url: ${{ steps.job-log-url.outputs.html_url }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
- 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: Make a deployment | |
run: schutzbot/deploy.sh | |
env: | |
GIT_COMMIT: ${{ needs.pr-info.outputs.sha }} | |
timeout-minutes: 20 | |
- name: run minimal-raw.sh | |
run: /usr/libexec/tests/osbuild-composer/minimal-raw.sh | |
env: | |
DOWNLOAD_NODE: ${{ secrets.DOWNLOAD_NODE }} | |
timeout-minutes: 60 | |
- name: Set non cancelled result status | |
if: ${{ !cancelled() }} | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: ${{ job.status }} | |
description: 'RHEL 9.4 - Test got ${{ job.status }}' | |
target_url: ${{ steps.job-log-url.outputs.html_url }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
- name: Set cancelled result status | |
if: ${{ cancelled() }} | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: error | |
description: 'RHEL 9.4 - Test got error' | |
target_url: ${{ steps.job-log-url.outputs.html_url }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
- uses: actions/upload-artifact@v3 | |
if: ${{ always() }} | |
with: | |
name: edge-minimal-raw-9 | |
path: | | |
/tmp/artifacts/*.json | |
/tmp/artifacts/*.log | |
# pre-edge-vsphere-9: | |
# needs: pr-info | |
# runs-on: ubuntu-latest | |
# env: | |
# STATUS_NAME: Tests / edge-vsphere-9 | |
# steps: | |
# - name: Get Current Job Log URL | |
# id: job-log-url | |
# run: | | |
# JOB_HTML_URL=$(curl --get -Ss -H "Authorization: token ${GITHUB_TOKEN}" -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/osbuild/rhel-edge-ci/actions/runs/${GITHUB_RUN_ID}/jobs?per_page=30" | jq -r --arg job_name "pre-edge-vsphere-9" '.jobs | map(select(.name == "pre-edge-vsphere-9")) | .[0].html_url') | |
# echo "html_url=$JOB_HTML_URL" >> $GITHUB_OUTPUT | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# - name: Create in-progress status | |
# uses: octokit/[email protected] | |
# with: | |
# route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
# context: ${{ env.STATUS_NAME }} | |
# state: pending | |
# description: 'RHEL 9.4 - Runner has been deploying...' | |
# target_url: '${{ steps.job-log-url.outputs.html_url }}' | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.PAT }} | |
# edge-vsphere-9: | |
# needs: [pr-info, pre-edge-vsphere-9] | |
# runs-on: [kite, x86_64, rhos-0x, rhel-9-4, medium] | |
# timeout-minutes: 180 | |
# env: | |
# STATUS_NAME: Tests / edge-vsphere-9 | |
# steps: | |
# - name: Get Current Job Log URL | |
# id: job-log-url | |
# run: | | |
# sudo dnf install -y jq | |
# JOB_HTML_URL=$(curl --get -Ss -H "Authorization: token ${GITHUB_TOKEN}" -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/osbuild/rhel-edge-ci/actions/runs/${GITHUB_RUN_ID}/jobs?per_page=30" | jq -r --arg job_name "edge-vsphere-9" '.jobs | map(select(.name == "edge-vsphere-9")) | .[0].html_url') | |
# echo "html_url=$JOB_HTML_URL" >> $GITHUB_OUTPUT | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# - name: Create in-progress status | |
# uses: octokit/[email protected] | |
# with: | |
# route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
# context: ${{ env.STATUS_NAME }} | |
# state: pending | |
# description: 'RHEL 9.4 - Test has been running...' | |
# target_url: ${{ steps.job-log-url.outputs.html_url }} | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.PAT }} | |
# - 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: Make a deployment | |
# run: schutzbot/deploy.sh | |
# env: | |
# GIT_COMMIT: ${{ needs.pr-info.outputs.sha }} | |
# timeout-minutes: 20 | |
# - name: run ostree-vsphere.sh | |
# run: /usr/libexec/tests/osbuild-composer/ostree-vsphere.sh | |
# env: | |
# DOWNLOAD_NODE: ${{ secrets.DOWNLOAD_NODE }} | |
# GOVC_URL: ${{ secrets.GOVC_URL }} | |
# GOVC_USERNAME: ${{ secrets.GOVC_USERNAME }} | |
# GOVC_PASSWORD: ${{ secrets.GOVC_PASSWORD }} | |
# GOVC_INSECURE: 1 | |
# timeout-minutes: 150 | |
# - name: Set non cancelled result status | |
# if: ${{ !cancelled() }} | |
# uses: octokit/[email protected] | |
# with: | |
# route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
# context: ${{ env.STATUS_NAME }} | |
# state: ${{ job.status }} | |
# description: 'RHEL 9.4 - Test got ${{ job.status }}' | |
# target_url: ${{ steps.job-log-url.outputs.html_url }} | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.PAT }} | |
# - name: Set cancelled result status | |
# if: ${{ cancelled() }} | |
# uses: octokit/[email protected] | |
# with: | |
# route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
# context: ${{ env.STATUS_NAME }} | |
# state: error | |
# description: 'RHEL 9.4 - Test got error' | |
# target_url: ${{ steps.job-log-url.outputs.html_url }} | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.PAT }} | |
# - uses: actions/upload-artifact@v3 | |
# if: ${{ always() }} | |
# with: | |
# name: edge-vsphere-9 | |
# path: | | |
# /tmp/artifacts/*.json | |
# /tmp/artifacts/*.log | |
pre-edge-vsphere-9-fips: | |
needs: pr-info | |
runs-on: ubuntu-latest | |
env: | |
STATUS_NAME: Tests / edge-vsphere-9-fips | |
steps: | |
- name: Get Current Job Log URL | |
id: job-log-url | |
run: | | |
JOB_HTML_URL=$(curl --get -Ss -H "Authorization: token ${GITHUB_TOKEN}" -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/osbuild/rhel-edge-ci/actions/runs/${GITHUB_RUN_ID}/jobs?per_page=30" | jq -r --arg job_name "pre-edge-vsphere-9-fips" '.jobs | map(select(.name == "pre-edge-vsphere-9-fips")) | .[0].html_url') | |
echo "html_url=$JOB_HTML_URL" >> $GITHUB_OUTPUT | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create in-progress status | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: pending | |
description: 'RHEL 9.4 - Runner has been deploying...' | |
target_url: '${{ steps.job-log-url.outputs.html_url }}' | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
edge-vsphere-9-fips: | |
needs: [pr-info, pre-edge-vsphere-9-fips] | |
runs-on: [kite, x86_64, rhos-0x, rhel-9-4, medium] | |
timeout-minutes: 180 | |
env: | |
STATUS_NAME: Tests / edge-vsphere-9-fips | |
steps: | |
- name: Get Current Job Log URL | |
id: job-log-url | |
run: | | |
sudo dnf install -y jq | |
JOB_HTML_URL=$(curl --get -Ss -H "Authorization: token ${GITHUB_TOKEN}" -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/osbuild/rhel-edge-ci/actions/runs/${GITHUB_RUN_ID}/jobs?per_page=30" | jq -r --arg job_name "edge-vsphere-9-fips" '.jobs | map(select(.name == "edge-vsphere-9-fips")) | .[0].html_url') | |
echo "html_url=$JOB_HTML_URL" >> $GITHUB_OUTPUT | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create in-progress status | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: pending | |
description: 'RHEL 9.4 - Test has been running...' | |
target_url: ${{ steps.job-log-url.outputs.html_url }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
- 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: Make a deployment | |
run: schutzbot/deploy.sh | |
env: | |
GIT_COMMIT: ${{ needs.pr-info.outputs.sha }} | |
timeout-minutes: 20 | |
- name: run ostree-vsphere.sh | |
run: /usr/libexec/tests/osbuild-composer/ostree-vsphere.sh | |
env: | |
DOWNLOAD_NODE: ${{ secrets.DOWNLOAD_NODE }} | |
GOVC_URL: ${{ secrets.GOVC_URL }} | |
GOVC_USERNAME: ${{ secrets.GOVC_USERNAME }} | |
GOVC_PASSWORD: ${{ secrets.GOVC_PASSWORD }} | |
GOVC_INSECURE: 1 | |
FIPS: true | |
timeout-minutes: 150 | |
- name: Set non cancelled result status | |
if: ${{ !cancelled() }} | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: ${{ job.status }} | |
description: 'RHEL 9.4 - Test got ${{ job.status }}' | |
target_url: ${{ steps.job-log-url.outputs.html_url }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
- name: Set cancelled result status | |
if: ${{ cancelled() }} | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: error | |
description: 'RHEL 9.4 - Test got error' | |
target_url: ${{ steps.job-log-url.outputs.html_url }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
- uses: actions/upload-artifact@v3 | |
if: ${{ always() }} | |
with: | |
name: edge-vsphere-9-fips | |
path: | | |
/tmp/artifacts/*.json | |
/tmp/artifacts/*.log | |
pre-edge-pulp-9: | |
needs: pr-info | |
runs-on: ubuntu-latest | |
env: | |
STATUS_NAME: Tests / edge-pulp-9 | |
steps: | |
- name: Get Current Job Log URL | |
id: job-log-url | |
run: | | |
JOB_HTML_URL=$(curl --get -Ss -H "Authorization: token ${GITHUB_TOKEN}" -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/osbuild/rhel-edge-ci/actions/runs/${GITHUB_RUN_ID}/jobs?per_page=30" | jq -r --arg job_name "pre-edge-pulp-9" '.jobs | map(select(.name == "pre-edge-pulp-9")) | .[0].html_url') | |
echo "html_url=$JOB_HTML_URL" >> $GITHUB_OUTPUT | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create in-progress status | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: pending | |
description: 'RHEL 9.4 - Runner has been deploying...' | |
target_url: '${{ steps.job-log-url.outputs.html_url }}' | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
edge-pulp-9: | |
needs: [pr-info, pre-edge-pulp-9] | |
runs-on: [kite, x86_64, rhos-0x, rhel-9-4, large] | |
timeout-minutes: 180 | |
env: | |
STATUS_NAME: Tests / edge-pulp-9 | |
steps: | |
- name: Get Current Job Log URL | |
id: job-log-url | |
run: | | |
sudo dnf install -y jq | |
JOB_HTML_URL=$(curl --get -Ss -H "Authorization: token ${GITHUB_TOKEN}" -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/osbuild/rhel-edge-ci/actions/runs/${GITHUB_RUN_ID}/jobs?per_page=30" | jq -r --arg job_name "edge-pulp-9" '.jobs | map(select(.name == "edge-pulp-9")) | .[0].html_url') | |
echo "html_url=$JOB_HTML_URL" >> $GITHUB_OUTPUT | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create in-progress status | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: pending | |
description: 'RHEL 9.4 - Test has been running...' | |
target_url: ${{ steps.job-log-url.outputs.html_url }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
- 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: Make a deployment | |
run: schutzbot/deploy.sh | |
env: | |
GIT_COMMIT: ${{ needs.pr-info.outputs.sha }} | |
timeout-minutes: 20 | |
- name: run ostree-pulp.sh | |
run: /usr/libexec/tests/osbuild-composer/ostree-pulp.sh | |
env: | |
DOWNLOAD_NODE: ${{ secrets.DOWNLOAD_NODE }} | |
GOVC_URL: ${{ secrets.GOVC_URL }} | |
GOVC_USERNAME: ${{ secrets.GOVC_USERNAME }} | |
GOVC_PASSWORD: ${{ secrets.GOVC_PASSWORD }} | |
GOVC_INSECURE: 1 | |
timeout-minutes: 150 | |
- name: Set non cancelled result status | |
if: ${{ !cancelled() }} | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: ${{ job.status }} | |
description: 'RHEL 9.4 - Test got ${{ job.status }}' | |
target_url: ${{ steps.job-log-url.outputs.html_url }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
- name: Set cancelled result status | |
if: ${{ cancelled() }} | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: error | |
description: 'RHEL 9.4 - Test got error' | |
target_url: ${{ steps.job-log-url.outputs.html_url }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
- uses: actions/upload-artifact@v3 | |
if: ${{ always() }} | |
with: | |
name: edge-pulp-9 | |
path: | | |
/tmp/artifacts/*.json | |
/tmp/artifacts/*.log |