diff --git a/.circleci/config.yml b/.circleci/config.yml index e121f9b101a..e4e676ca3fd 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -587,14 +587,24 @@ jobs: name: install snapcraft command: sudo snap install snapcraft --classic - run: - name: build snap + name: build `lotus-filecoin` snap command: snapcraft --use-lxd --debug - run: - name: publish snap + name: publish `lotus-filecoin` snap command: | - pwd - ls *.snap snapcraft upload lotus-filecoin_latest_amd64.snap --release << parameters.channel >> + - run: + name: Rewrite snapcraft.yaml to use `lotus` name + command: + cat snap/snapcraft.yaml | sed 's/lotus-filecoin/lotus/' > lotus-snapcraft.yaml + mv lotus-snapcrat.yaml snap/snapcraft.yaml + - run: + name: build `lotus` snap + command: snapcraft --use-lxd --debug + - run: + name: publish `lotus` snap + command: | + snapcraft upload lotus_latest_amd64.snap --release << parameters.channel >> build-and-push-image: description: build and push docker images to public AWS ECR registry diff --git a/.circleci/template.yml b/.circleci/template.yml index a9f7fc54c0f..5eefc59bf9a 100644 --- a/.circleci/template.yml +++ b/.circleci/template.yml @@ -587,14 +587,24 @@ jobs: name: install snapcraft command: sudo snap install snapcraft --classic - run: - name: build snap + name: build `lotus-filecoin` snap command: snapcraft --use-lxd --debug - run: - name: publish snap + name: publish `lotus-filecoin` snap command: | - pwd - ls *.snap snapcraft upload lotus-filecoin_latest_amd64.snap --release << parameters.channel >> + - run: + name: Rewrite snapcraft.yaml to use `lotus` name + command: + cat snap/snapcraft.yaml | sed 's/lotus-filecoin/lotus/' > lotus-snapcraft.yaml + mv lotus-snapcrat.yaml snap/snapcraft.yaml + - run: + name: build `lotus` snap + command: snapcraft --use-lxd --debug + - run: + name: publish `lotus` snap + command: | + snapcraft upload lotus_latest_amd64.snap --release << parameters.channel >> build-and-push-image: description: build and push docker images to public AWS ECR registry