Merge pull request #9425 from filecoin-project/packer-tweaks

_ci_: Fix failing Digital Ocean and Amazon Machine Image release process
This commit is contained in:
Aayush Rajasekaran 2022-10-12 13:41:58 -04:00 committed by GitHub
commit e5f48ad9bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 10 deletions

View File

@ -140,7 +140,7 @@ commands:
- run:
name: "Run a packer build"
command: packer build << parameters.args >> << parameters.template >>
no_output_timeout: 30m
no_output_timeout: 1h
jobs:
mod-tidy-check:
@ -1265,10 +1265,10 @@ workflows:
- publish-dockerhub:
name: publish-dockerhub-nightly
tag: nightly
monthly:
biweekly:
triggers:
- schedule:
cron: "0 0 1 * *"
cron: "0 0 1,15 * *"
filters:
branches:
only:

View File

@ -140,7 +140,7 @@ commands:
- run:
name: "Run a packer build"
command: packer build << parameters.args >> << parameters.template >>
no_output_timeout: 30m
no_output_timeout: 1h
jobs:
mod-tidy-check:
@ -990,10 +990,10 @@ workflows:
- publish-dockerhub:
name: publish-dockerhub-nightly
tag: nightly
monthly:
biweekly:
triggers:
- schedule:
cron: "0 0 1 * *"
cron: "0 0 1,15 * *"
filters:
branches:
only:

View File

@ -56,6 +56,11 @@ source "amazon-ebs" "lotus" {
owners = ["099720109477"]
}
ssh_username = "ubuntu"
aws_polling {
delay_seconds = 60
max_attempts = 60
}
}
source "digitalocean" "lotus" {
@ -82,3 +87,4 @@ build {
script = "./tools/packer/setup-snap.sh"
}
}

View File

@ -23,13 +23,10 @@ MANAGED_FILES=(
)
# this is required on digitalocean, which does not have snap seeded correctly at this phase.
apt update
apt reinstall snapd
apt-get -y update && apt-get -y reinstall snapd
snap install lotus
snap alias lotus.lotus lotus
snap alias lotus.lotus-daemon lotus-daemon
snap alias lotus.lotus-miner lotus-miner
snap alias lotus.lotus-worker lotus-worker