Skip to content

Commit

Permalink
fix github runners
Browse files Browse the repository at this point in the history
Signed-off-by: JooYoung Park <[email protected]>
  • Loading branch information
JooyoungPark73 committed Mar 4, 2024
1 parent c56ab31 commit c7efad1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/integration_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
name: ctrd-logs
name: ctrd-logs-${{ matrix.test-name }}
path: |
/tmp/ctrd-logs/
${{ github.workspace }}/*.log
Expand Down
9 changes: 8 additions & 1 deletion scripts/github_runner/deploy_runners.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,15 @@ func deployRunner(host string, runnerConf RunnerConf, deployerConf *DeployerConf
log.Fatalf("Failed to connect to %s@%s: %s", deployerConf.HostUsername, host, err)
}

log.Debug("Remove unattended-upgrades")
out, err := client.Exec("sudo systemctl stop unattended-upgrades && sudo apt remove -y unattended-upgrades")
log.Debug(string(out))
if err != nil {
log.Fatalf("Cannot disable unattended-upgrades")
}

log.Debugf("Cloning vHive repository on %s@%s", deployerConf.HostUsername, host)
out, err := client.Exec(fmt.Sprintf("rm -rf ./vhive ./actions-runner && git clone --depth=1 --branch=%s https://github.com/%s/vhive", deployerConf.GhBranch, deployerConf.GhOrg))
out, err = client.Exec(fmt.Sprintf("rm -rf ./vhive ./actions-runner && git clone --depth=1 --branch=%s https://github.com/%s/vhive", deployerConf.GhBranch, deployerConf.GhOrg))
log.Debug(string(out))
if err != nil {
log.Fatalf("Failed to clone vHive repository on %s@%s: %s", deployerConf.HostUsername, host, err)
Expand Down

0 comments on commit c7efad1

Please sign in to comment.