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:
commit
e5f48ad9bf
@ -140,7 +140,7 @@ commands:
|
|||||||
- run:
|
- run:
|
||||||
name: "Run a packer build"
|
name: "Run a packer build"
|
||||||
command: packer build << parameters.args >> << parameters.template >>
|
command: packer build << parameters.args >> << parameters.template >>
|
||||||
no_output_timeout: 30m
|
no_output_timeout: 1h
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
mod-tidy-check:
|
mod-tidy-check:
|
||||||
@ -1265,10 +1265,10 @@ workflows:
|
|||||||
- publish-dockerhub:
|
- publish-dockerhub:
|
||||||
name: publish-dockerhub-nightly
|
name: publish-dockerhub-nightly
|
||||||
tag: nightly
|
tag: nightly
|
||||||
monthly:
|
biweekly:
|
||||||
triggers:
|
triggers:
|
||||||
- schedule:
|
- schedule:
|
||||||
cron: "0 0 1 * *"
|
cron: "0 0 1,15 * *"
|
||||||
filters:
|
filters:
|
||||||
branches:
|
branches:
|
||||||
only:
|
only:
|
||||||
|
@ -140,7 +140,7 @@ commands:
|
|||||||
- run:
|
- run:
|
||||||
name: "Run a packer build"
|
name: "Run a packer build"
|
||||||
command: packer build << parameters.args >> << parameters.template >>
|
command: packer build << parameters.args >> << parameters.template >>
|
||||||
no_output_timeout: 30m
|
no_output_timeout: 1h
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
mod-tidy-check:
|
mod-tidy-check:
|
||||||
@ -990,10 +990,10 @@ workflows:
|
|||||||
- publish-dockerhub:
|
- publish-dockerhub:
|
||||||
name: publish-dockerhub-nightly
|
name: publish-dockerhub-nightly
|
||||||
tag: nightly
|
tag: nightly
|
||||||
monthly:
|
biweekly:
|
||||||
triggers:
|
triggers:
|
||||||
- schedule:
|
- schedule:
|
||||||
cron: "0 0 1 * *"
|
cron: "0 0 1,15 * *"
|
||||||
filters:
|
filters:
|
||||||
branches:
|
branches:
|
||||||
only:
|
only:
|
||||||
|
@ -56,6 +56,11 @@ source "amazon-ebs" "lotus" {
|
|||||||
owners = ["099720109477"]
|
owners = ["099720109477"]
|
||||||
}
|
}
|
||||||
ssh_username = "ubuntu"
|
ssh_username = "ubuntu"
|
||||||
|
|
||||||
|
aws_polling {
|
||||||
|
delay_seconds = 60
|
||||||
|
max_attempts = 60
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
source "digitalocean" "lotus" {
|
source "digitalocean" "lotus" {
|
||||||
@ -82,3 +87,4 @@ build {
|
|||||||
script = "./tools/packer/setup-snap.sh"
|
script = "./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.
|
# this is required on digitalocean, which does not have snap seeded correctly at this phase.
|
||||||
apt update
|
apt-get -y update && apt-get -y reinstall snapd
|
||||||
apt reinstall snapd
|
|
||||||
|
|
||||||
snap install lotus
|
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-miner lotus-miner
|
||||||
snap alias lotus.lotus-worker lotus-worker
|
snap alias lotus.lotus-worker lotus-worker
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user