diff --git a/.circleci/config.yml b/.circleci/config.yml index fdfcafe7c..02c75c962 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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: diff --git a/.circleci/template.yml b/.circleci/template.yml index 4fe4e4bd3..d7bba709d 100644 --- a/.circleci/template.yml +++ b/.circleci/template.yml @@ -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: diff --git a/tools/packer/lotus-snap.pkr.hcl b/tools/packer/lotus-snap.pkr.hcl index 8ceb743d0..b42272c20 100644 --- a/tools/packer/lotus-snap.pkr.hcl +++ b/tools/packer/lotus-snap.pkr.hcl @@ -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" } } + diff --git a/tools/packer/setup-snap.sh b/tools/packer/setup-snap.sh index 3db06e5b4..c6050eaf4 100644 --- a/tools/packer/setup-snap.sh +++ b/tools/packer/setup-snap.sh @@ -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