separate different networks

This commit is contained in:
Cory Schwartz 2021-03-31 15:07:55 -07:00
parent 49ca9bef41
commit 99d2b31551

View File

@ -278,11 +278,11 @@ jobs:
- install-deps - install-deps
- prepare - prepare
- run: make calibnet - run: make calibnet
- run: mkdir linux-calibnet && mv lotus lotus-miner lotus-worker linux-calibnet - run: mkdir linux-calibrationnet && mv lotus lotus-miner lotus-worker linux-calibrationnet
- persist_to_workspace: - persist_to_workspace:
root: "." root: "."
paths: paths:
- linux-calibnet - linux-calibrationnet
build-ntwk-butterfly: build-ntwk-butterfly:
description: | description: |
Compile lotus binaries for the butterfly network Compile lotus binaries for the butterfly network
@ -619,7 +619,7 @@ jobs:
docker push $<<parameters.account-url>>/<<parameters.repo>>:${tag} docker push $<<parameters.account-url>>/<<parameters.repo>>:${tag}
done done
publish-packer: publish-packer-mainnet:
description: build and push AWS IAM and DigitalOcean droplet. description: build and push AWS IAM and DigitalOcean droplet.
executor: executor:
name: packer/default name: packer/default
@ -631,12 +631,39 @@ jobs:
- packer/build: - packer/build:
template: tools/packer/lotus.pkr.hcl template: tools/packer/lotus.pkr.hcl
args: "-var ci_workspace_bins=./linux -var lotus_network=mainnet -var git_tag=$CIRCLE_TAG" args: "-var ci_workspace_bins=./linux -var lotus_network=mainnet -var git_tag=$CIRCLE_TAG"
publish-packer-calibrationnet:
description: build and push AWS IAM and DigitalOcean droplet.
executor:
name: packer/default
packer-version: 1.6.6
steps:
- checkout
- attach_workspace:
at: "."
- packer/build: - packer/build:
template: tools/packer/lotus.pkr.hcl template: tools/packer/lotus.pkr.hcl
args: "-var ci_workspace_bins=./linux-calibnet -var lotus_network=calibrationnet -var git_tag=$CIRCLE_TAG" args: "-var ci_workspace_bins=./linux-calibrationnet -var lotus_network=calibrationnet -var git_tag=$CIRCLE_TAG"
publish-packer-butterflynet:
description: build and push AWS IAM and DigitalOcean droplet.
executor:
name: packer/default
packer-version: 1.6.6
steps:
- checkout
- attach_workspace:
at: "."
- packer/build: - packer/build:
template: tools/packer/lotus.pkr.hcl template: tools/packer/lotus.pkr.hcl
args: "-var ci_workspace_bins=./linux-butterflynet -var lotus_network=butterflynet -var git_tag=$CIRCLE_TAG" args: "-var ci_workspace_bins=./linux-butterflynet -var lotus_network=butterflynet -var git_tag=$CIRCLE_TAG"
publish-packer-nerpanet:
description: build and push AWS IAM and DigitalOcean droplet.
executor:
name: packer/default
packer-version: 1.6.6
steps:
- checkout
- attach_workspace:
at: "."
- packer/build: - packer/build:
template: tools/packer/lotus.pkr.hcl template: tools/packer/lotus.pkr.hcl
args: "-var ci_workspace_bins=./linux-nerpanet -var lotus_network=nerpanet -var git_tag=$CIRCLE_TAG" args: "-var ci_workspace_bins=./linux-nerpanet -var lotus_network=nerpanet -var git_tag=$CIRCLE_TAG"
@ -744,11 +771,17 @@ workflows:
path: . path: .
repo: lotus-dev repo: lotus-dev
tag: '${CIRCLE_SHA1:0:8}' tag: '${CIRCLE_SHA1:0:8}'
- publish-packer: - publish-packer-mainnet:
requires: requires:
- build-all - build-all
- publish-packer-calibrationnet:
requires:
- build-ntwk-calibration - build-ntwk-calibration
- publish-packer-butterflynet:
requires:
- build-ntwk-butterfly - build-ntwk-butterfly
- publish-packer-nerpanet:
requires:
- build-ntwk-nerpa - build-ntwk-nerpa
# filters: # filters:
# branches: # branches: