Skip to content

Commit

Permalink
Merge pull request #245 from cheqd/release-pipeline-fix
Browse files Browse the repository at this point in the history
Fix release pipelines
  • Loading branch information
askolesov authored Dec 7, 2021
2 parents 2e2a3c0 + 92d8e71 commit 305da7f
Show file tree
Hide file tree
Showing 4 changed files with 186 additions and 162 deletions.
44 changes: 23 additions & 21 deletions .github/workflows/node-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,15 @@ jobs:
fetch-depth: 0 # FIXME: Starport requires full repository

- name: Build
run: starport chain build
run: |
starport chain build --release
tar xzvf release/cheqd-node_linux_amd64.tar.gz
- name: Store artifact
uses: actions/upload-artifact@v2
with:
name: cheqd-noded
path: /home/runner/go/bin/cheqd-noded
path: cheqd-noded

build-deb-package:
name: Build deb package
Expand All @@ -83,7 +85,7 @@ jobs:
- name: Restore binary permissions
run: sudo chmod +x /home/runner/go/bin/cheqd-noded

- name: Make archive
- name: Make intermediate archive
working-directory: ./build_tools
run: |
./build_tar.sh ${{ env.PACKAGE_NAME }} ${{ env.VERSION }}
Expand All @@ -93,9 +95,9 @@ jobs:
sudo apt-get install ruby ruby-dev rubygems build-essential
sudo gem install --no-document fpm
- name: Build deb
- name: Build deb # Depends on tar archive
run: |
./build_deb.sh ${{ env.PACKAGE_NAME }} ${{ env.VERSION }}
./build_deb.sh ${{ env.PACKAGE_NAME }} ${{ env.VERSION }}
working-directory: ./build_tools

- name: Store deb package artifact
Expand All @@ -116,13 +118,13 @@ jobs:
run: docker build -f docker/cheqd_node/Dockerfile --no-cache -t cheqd-node --build-arg UID=$(id -u) --build-arg GID=$(id -g) . # TODO: Get rid of UID and GID

- name: Save
run: docker save -o cheqd-node.tar cheqd-node
run: docker save -o cheqd-node-image.tar cheqd-node

- name: Store artifact
uses: actions/upload-artifact@v2
with:
name: cheqd-node.tar
path: cheqd-node.tar
name: cheqd-node-image.tar
path: cheqd-node-image.tar

build-testnet-image:
name: Build cheqd-testnet image
Expand All @@ -135,22 +137,22 @@ jobs:
- name: Download node image
uses: actions/download-artifact@v2
with:
name: cheqd-node.tar
name: cheqd-node-image.tar

- name: Load node image
run: docker load -i cheqd-node.tar
run: docker load -i cheqd-node-image.tar

- name: Build
run: docker build -f docker/single_image_testnet/Dockerfile --no-cache -t cheqd-testnet .

- name: Save
run: docker save -o cheqd-testnet.tar cheqd-testnet
run: docker save -o cheqd-testnet-image.tar cheqd-testnet

- name: Store artifact
uses: actions/upload-artifact@v2
with:
name: cheqd-testnet.tar
path: cheqd-testnet.tar
name: cheqd-testnet-image.tar
path: cheqd-testnet-image.tar

test-new-node-setup-from-deb:
name: Test new node setup from deb
Expand All @@ -168,10 +170,10 @@ jobs:
- name: Download node image
uses: actions/download-artifact@v2
with:
name: cheqd-node.tar
name: cheqd-node-image.tar

- name: Load node image
run: docker load -i cheqd-node.tar
run: docker load -i cheqd-node-image.tar

- name: Check out
uses: actions/checkout@v2
Expand Down Expand Up @@ -225,10 +227,10 @@ jobs:
- name: Download node image
uses: actions/download-artifact@v2
with:
name: cheqd-node.tar
name: cheqd-node-image.tar

- name: Load node image
run: docker load -i cheqd-node.tar
run: docker load -i cheqd-node-image.tar

- uses: actions/checkout@v2

Expand Down Expand Up @@ -263,10 +265,10 @@ jobs:
- name: Download testnet image
uses: actions/download-artifact@v2
with:
name: cheqd-testnet.tar
name: cheqd-testnet-image.tar

- name: Load testnet image
run: docker load -i cheqd-testnet.tar
run: docker load -i cheqd-testnet-image.tar

- name: Run test net container
run: |
Expand Down Expand Up @@ -305,10 +307,10 @@ jobs:
- name: Download testnet image
uses: actions/download-artifact@v2
with:
name: cheqd-testnet.tar
name: cheqd-testnet-image.tar

- name: Load testnet image
run: docker load -i cheqd-testnet.tar
run: docker load -i cheqd-testnet-image.tar

- name: Run test net container
run: |
Expand Down
Loading

0 comments on commit 305da7f

Please sign in to comment.