Skip to content

Commit

Permalink
ci: fix sweeper path (#4386)
Browse files Browse the repository at this point in the history
  • Loading branch information
remyleone authored Dec 27, 2024
1 parent 0781019 commit 39ba77a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ jobs:
SLACK_WEBHOOK_NIGHTLY: ${{ secrets.SLACK_WEBHOOK_NIGHTLY }}
FAILED_PRODUCT: ${{ matrix.products }}
- name: Run Sweepers
run: go run -v ./cmd/scw-sweepers
run: go run -v ./cmd/scw-sweeper
env:
SCW_DEBUG: 1
SCW_ACCESS_KEY: ${{ secrets.SCW_ACCESS_KEY }}
Expand Down
6 changes: 6 additions & 0 deletions cmd/scw-sweeper/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
containerSweeper "github.com/scaleway/scaleway-sdk-go/api/container/v1beta1/sweepers"
flexibleipSweeper "github.com/scaleway/scaleway-sdk-go/api/flexibleip/v1alpha1/sweepers"
functionSweeper "github.com/scaleway/scaleway-sdk-go/api/function/v1beta1/sweepers"
iamSweeper "github.com/scaleway/scaleway-sdk-go/api/iam/v1alpha1/sweepers"
inferenceSweeper "github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1/sweepers"
instanceSweeper "github.com/scaleway/scaleway-sdk-go/api/instance/v1/sweepers"
iotSweeper "github.com/scaleway/scaleway-sdk-go/api/iot/v1/sweepers"
Expand Down Expand Up @@ -96,6 +97,11 @@ func mainNoExit() int {
return -1
}

err = iamSweeper.SweepSSHKey(client)
if err != nil {
return -1
}

err = inferenceSweeper.SweepAllLocalities(client)
if err != nil {
return -1
Expand Down

0 comments on commit 39ba77a

Please sign in to comment.