Skip to content

Commit

Permalink
Added pull request ref to build latest noobaa
Browse files Browse the repository at this point in the history
Signed-off-by: Aayush Chouhan <[email protected]>
  • Loading branch information
achouhan09 committed Jan 3, 2025
1 parent 72ce1cd commit 5719ee6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/upgrade-tests.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Upgrade Tests
on: [push, pull_request, workflow_dispatch]
on: [pull_request]

jobs:
upgrade-tests:
Expand Down Expand Up @@ -35,6 +35,7 @@ jobs:
with:
repository: 'noobaa/noobaa-core'
path: 'noobaa-core'
ref: ${{ github.event.pull_request.base.ref }}

- name: Build noobaa (latest)
run: |
Expand Down Expand Up @@ -79,8 +80,8 @@ jobs:
- name: Upgrade noobaa to latest
run: |
cd ./noobaa-operator
VERSION=$(go run cmd/version/main.go)
./build/_output/bin/noobaa-operator upgrade --noobaa-image='noobaa-core:upgrade-tests' --operator-image='noobaa/noobaa-operator:$VERSION'
OPERATOR_VERSION=$(go run cmd/version/main.go)
./build/_output/bin/noobaa-operator upgrade --noobaa-image='noobaa-core:upgrade-tests' --operator-image='noobaa/noobaa-operator:$OPERATOR_VERSION'
- name: Run Upgrade Tests
run: |
Expand Down

0 comments on commit 5719ee6

Please sign in to comment.