Skip to content

Commit d73d77a

Browse files
authored
Split docker CI workflow (#186)
* Split docker CI workflow * Temporary disable integration tests
1 parent e976f72 commit d73d77a

2 files changed

Lines changed: 34 additions & 4 deletions

File tree

.github/workflows/docker_hub_build.yml

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
- mainnet_next
1212

1313
jobs:
14-
build-docker-image:
14+
build-production-docker-image:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: checkout
@@ -41,7 +41,7 @@ jobs:
4141
echo "TAG_NAME=$TAG_NAME" >> $GITHUB_OUTPUT
4242
echo "SPEC_NAME=$SPEC_NAME" >> $GITHUB_OUTPUT
4343
44-
- name: 'Build production ${{ steps.image_tag.outputs.TAG_NAME }} image'
44+
- name: "Build production ${{ steps.image_tag.outputs.TAG_NAME }} image"
4545
if: steps.image_tag.outputs.TAG_NAME != 'master'
4646
uses: docker/build-push-action@v3
4747
with:
@@ -51,7 +51,37 @@ jobs:
5151
build-args: features=--features=${{ steps.image_tag.outputs.SPEC_NAME }},wasmtime
5252
tags: docknetwork/dock-substrate:${{ steps.image_tag.outputs.TAG_NAME }}
5353

54-
- name: 'Build release fastblock_${{ steps.image_tag.outputs.TAG_NAME }} image'
54+
build-fastblock-docker-image:
55+
runs-on: ubuntu-latest
56+
steps:
57+
- name: checkout
58+
uses: actions/checkout@v2
59+
60+
- name: Login to Docker Hub
61+
uses: docker/login-action@v2
62+
with:
63+
username: ${{ secrets.DOCKER_HUB_USERNAME }}
64+
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
65+
66+
- name: Set tag name
67+
id: image_tag
68+
shell: bash
69+
run: |
70+
export TAG_NAME=master
71+
if [[ '${{github.ref_name}}' == 'mainnet' || '${{github.ref_name}}' == 'testnet' || '${{github.ref_name}}' == 'mainnet_next' ]];
72+
then
73+
export TAG_NAME=${{github.ref_name}}
74+
if [[ $TAG_NAME == 'mainnet_next' ]]
75+
then
76+
export SPEC_NAME='mainnet'
77+
else
78+
export SPEC_NAME=$TAG_NAME
79+
fi
80+
fi
81+
echo "TAG_NAME=$TAG_NAME" >> $GITHUB_OUTPUT
82+
echo "SPEC_NAME=$SPEC_NAME" >> $GITHUB_OUTPUT
83+
84+
- name: "Build release fastblock_${{ steps.image_tag.outputs.TAG_NAME }} image"
5585
uses: docker/build-push-action@v3
5686
with:
5787
context: .

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ jobs:
3535
- name: Install WASM
3636
run: rustup target add wasm32-unknown-unknown --toolchain nightly-2023-03-09
3737
# Temporary solution: disk space is exceeded on the runner machine
38-
- run: ./scripts/integration_tests
38+
# - run: ./scripts/integration_tests

0 commit comments

Comments
 (0)