Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.

ci: fix workflow for fedora 40 and 41 comment trigger #302

Merged
merged 1 commit into from
May 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 11 additions & 7 deletions .github/workflows/bib-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ jobs:
endsWith(github.event.comment.body, '/test-cs9') ||
endsWith(github.event.comment.body, '/test-cs9-bib-image') ||
endsWith(github.event.comment.body, '/test-cs9-dev') ||
endsWith(github.event.comment.body, '/test-cs9-dev-bib-image')) }}
endsWith(github.event.comment.body, '/test-cs9-dev-bib-image')) ||
endsWith(github.event.comment.body, '/test-fedora-40') ||
endsWith(github.event.comment.body, '/test-fedora-40-bib-image') ||
endsWith(github.event.comment.body, '/test-fedora-41') ||
endsWith(github.event.comment.body, '/test-fedora-41-bib-image')) }}
runs-on: ubuntu-latest
steps:
- name: Query author repository permissions
Expand Down Expand Up @@ -354,11 +358,11 @@ jobs:
secrets: "TIER1_IMAGE_URL=${{ secrets.CS9_DEV_TIER1_IMAGE_URL }};QUAY_USERNAME=${{ secrets.QUAY_USERNAME }};QUAY_PASSWORD=${{ secrets.QUAY_PASSWORD }};QUAY_SECRET=${{ secrets.QUAY_SECRET }};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: "PLATFORM=${{ matrix.platform }};ARCH=${{ matrix.arch }};IMAGE_TYPE=${{ matrix.image_type }};AWS_REGION=${{ secrets.AWS_REGION }};GOVC_INSECURE=1;FIRMWARE=${{ matrix.firmware }}"

f40-bib-image:
fedora-40-bib-image:
needs: pr-info
if: ${{ needs.pr-info.outputs.allowed_user == 'true' && github.event.issue.pull_request &&
(endsWith(github.event.comment.body, '/test-f40') ||
endsWith(github.event.comment.body, '/test-f40-bib-image')) }}
(endsWith(github.event.comment.body, '/test-fedora-40') ||
endsWith(github.event.comment.body, '/test-fedora-40-bib-image')) }}
continue-on-error: true
strategy:
matrix:
Expand Down Expand Up @@ -418,11 +422,11 @@ jobs:
secrets: "QUAY_USERNAME=${{ secrets.QUAY_USERNAME }};QUAY_PASSWORD=${{ secrets.QUAY_PASSWORD }};QUAY_SECRET=${{ secrets.QUAY_SECRET }};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: "PLATFORM=${{ matrix.platform }};ARCH=${{ matrix.arch }};IMAGE_TYPE=${{ matrix.image_type }};AWS_REGION=${{ secrets.AWS_REGION }};GOVC_INSECURE=1;FIRMWARE=${{ matrix.firmware }};TIER1_IMAGE_URL=${{ vars.FEDORA_40_TIER1_IMAGE_URL }}"

f41-bib-image:
fedora-41-bib-image:
needs: pr-info
if: ${{ needs.pr-info.outputs.allowed_user == 'true' && github.event.issue.pull_request &&
(endsWith(github.event.comment.body, '/test-f41') ||
endsWith(github.event.comment.body, '/test-f41-bib-image')) }}
(endsWith(github.event.comment.body, '/test-fedora-41') ||
endsWith(github.event.comment.body, '/test-fedora-41-bib-image')) }}
continue-on-error: true
strategy:
matrix:
Expand Down
14 changes: 9 additions & 5 deletions .github/workflows/os-replace.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ jobs:
endsWith(github.event.comment.body, '/test-cs9') ||
endsWith(github.event.comment.body, '/test-cs9-replace') ||
endsWith(github.event.comment.body, '/test-cs9-dev') ||
endsWith(github.event.comment.body, '/test-cs9-dev-replace')) }}
endsWith(github.event.comment.body, '/test-cs9-dev-replace')) ||
endsWith(github.event.comment.body, '/test-fedora-40') ||
endsWith(github.event.comment.body, '/test-fedora-40-replace') ||
endsWith(github.event.comment.body, '/test-fedora-41') ||
endsWith(github.event.comment.body, '/test-fedora-41-replace')) }}
runs-on: ubuntu-latest
steps:
- name: Query author repository permissions
Expand Down Expand Up @@ -219,8 +223,8 @@ jobs:
fedora-40-replace:
needs: pr-info
if: ${{ needs.pr-info.outputs.allowed_user == 'true' && github.event.issue.pull_request &&
(endsWith(github.event.comment.body, '/test-f40') ||
endsWith(github.event.comment.body, '/test-f40-replace')) }}
(endsWith(github.event.comment.body, '/test-fedora-40') ||
endsWith(github.event.comment.body, '/test-fedora-40-replace')) }}
continue-on-error: true
strategy:
matrix:
Expand Down Expand Up @@ -257,8 +261,8 @@ jobs:
fedora-41-replace:
needs: pr-info
if: ${{ needs.pr-info.outputs.allowed_user == 'true' && github.event.issue.pull_request &&
(endsWith(github.event.comment.body, '/test-f41') ||
endsWith(github.event.comment.body, '/test-f41-replace')) }}
(endsWith(github.event.comment.body, '/test-fedora-41') ||
endsWith(github.event.comment.body, '/test-fedora-41-replace')) }}
continue-on-error: true
strategy:
matrix:
Expand Down