-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from subhamkrai/intree-ci
ci: add ci to test intree migration to ceph-csi
- Loading branch information
Showing
4 changed files
with
208 additions
and
40 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
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,57 @@ | ||
name: Migrate-to-In-tree | ||
on: | ||
pull_request: | ||
|
||
defaults: | ||
run: | ||
# reference: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#using-a-specific-shell | ||
shell: bash --noprofile --norc -eo pipefail -x {0} | ||
|
||
jobs: | ||
In-tree-to-CSI: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: setup cluster resources | ||
uses: ./.github/workflows/setup-cluster-resources | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: setup In-tree | ||
run: tests/script/github_action_helper.sh deploy_rook_ceph_with_intree | ||
|
||
- name: Test migration of all PVC | ||
run: tests/script/github_action_helper.sh test_intree_migration_for_all_pvc | ||
|
||
- name: setup tmate session for debugging when event is PR | ||
if: failure() | ||
uses: mxschmitt/action-tmate@v3 | ||
timeout-minutes: 300 | ||
|
||
In-tree-Mirgate-single-PVC: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: setup cluster resources | ||
uses: ./.github/workflows/setup-cluster-resources | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: setup In-tree | ||
run: tests/script/github_action_helper.sh deploy_rook_ceph_with_intree | ||
|
||
- name: Test migration of all PVC | ||
run: tests/script/github_action_helper.sh test_intree_migration_for_single_pvc | ||
|
||
- name: setup tmate session for debugging when event is PR | ||
if: failure() | ||
uses: mxschmitt/action-tmate@v3 | ||
timeout-minutes: 300 |
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 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