This commit is contained in:
Cory Schwartz 2022-01-18 17:35:34 -08:00
parent a3458213f4
commit 1cd93e63fd
3 changed files with 12 additions and 5 deletions

View File

@ -1058,7 +1058,13 @@ workflows:
tags:
only:
- /^v\d+\.\d+\.\d+(-rc\d+)?$/
- publish-packer-snap
- publish-snapcaft:
name: publish-snapcraft-temporary
channel: edge
- publish-packer-snap:
name: publish-packer-snap-temporary
requires:
- publish-snapcraft-temporary
nightly:
triggers:

View File

@ -10,7 +10,7 @@ variable "lotus_network" {
locals {
timestamp = regex_replace(timestamp(), "[- TZ:]", "")
}
}
source "amazon-ebs" "lotus" {
ami_name = "lotus-${var.lotus_network}-snap-${local.timestamp}"

View File

@ -26,13 +26,14 @@ MANAGED_FILES=(
apt update
apt reinstall snapd
snap install lotus-filecoin
snap install lotus-filecoin --channel=edge
snap alias lotus-filecoin.lotus lotus
snap alias lotus-file.con.lotus-daemon lotus-daemon
snap alias lotus-filecoin.lotus-miner lotus-miner
snap alias lotus-filecoin.lotus-miner lotus-worker
snap alias lotus-filecoin.lotus-worker lotus-worker
#snap stop lotus-filecoin.lotus-daemon
snap stop lotus-filecoin.lotus-daemon
# Setup firewall
yes | ufw enable