-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Backport][v2.7] GHA CI #472
Changes from all commits
bd34476
9ee9cae
e15105c
836d477
e524b91
caa0b6c
911f368
be43f56
c8d55b2
627e9cd
2142bcd
3f3baca
fdcc858
84c45cf
f6daf5e
f066b36
03d8bb5
c30011a
c46837b
110c94f
56dee5b
b02c35e
91cdb11
c7b1365
348914e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
name: Backup Restore CI | ||
|
||
permissions: | ||
contents : read | ||
|
||
on: | ||
workflow_call: | ||
push: | ||
branches: | ||
- release/v5.0 | ||
- release/v4.0 | ||
- release/v3.0 | ||
- release/v[0-9]+.[0-9]+.[0-9]+ | ||
paths-ignore: | ||
- 'docs/**' | ||
- '*.md' | ||
- '.gitignore' | ||
- 'CODEOWNERS' | ||
- 'LICENSE' | ||
pull_request: | ||
paths-ignore: | ||
- 'docs/**' | ||
- '*.md' | ||
- '.gitignore' | ||
- 'CODEOWNERS' | ||
- 'LICENSE' | ||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Alternative to run on both platforms:
|
||
os : [ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. extra white-space at the end |
||
ubuntu-latest | ||
# org-rancher-arm64-containers | ||
] | ||
name : CI | ||
runs-on : ${{ matrix.os }} | ||
outputs: | ||
k3sversions: ${{ steps.support.outputs.k3sversions }} | ||
steps: | ||
- name : Checkout repository | ||
uses : actions/checkout@v4 | ||
with : | ||
fetch-depth : 0 | ||
- name: Set K3s support output | ||
id : support | ||
run: ./.github/workflows/scripts/supported-versions.sh | awk '{print "k3sversions="$0}' >> $GITHUB_OUTPUT | ||
- name : CI | ||
run : make ci | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: bro-build-artifacts-${{ matrix.os }} | ||
path: ./dist/artifacts | ||
|
||
test: | ||
name : integration-test | ||
needs : [ | ||
build | ||
] | ||
runs-on : ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os : [ | ||
ubuntu-latest | ||
# org-rancher-arm64-containers, | ||
] | ||
K3S_VERSION : ${{ fromJSON(needs.build.outputs.k3sversions) }} | ||
steps: | ||
- name : Checkout repository | ||
uses : actions/checkout@v4 | ||
- name : Fetch build artifacts | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: bro-build-artifacts-${{ matrix.os }} | ||
path: ./dist/artifacts/ | ||
- name : Debug | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I use this too, but I assume we want to pull out the Debug parts once everything's working |
||
run : ls -R ./dist/artifacts | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- name : Load backup-restore-operator image | ||
run : docker image load -i ./dist/artifacts/backup-restore-operator.img | ||
- name : Setup up K3d | ||
run : ./.github/workflows/scripts/install-k3d.sh | ||
- name : Setup up mc | ||
run : ./.github/workflows/scripts/install-mc.sh | ||
- name : Setup k3d cluster | ||
run : CLUSTER_NAME=backup-restore K3S_VERSION=${{ matrix.K3S_VERSION }} ./.github/workflows/scripts/setup-cluster.sh | ||
- name : Run integration tests | ||
run : ./scripts/integration |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this just be
release/v*
so we don't have to keep updating it?