Skip to content

Commit

Permalink
Split docker CI workflow (#186)
Browse files Browse the repository at this point in the history
* Split docker CI workflow

* Temporary disable integration tests
  • Loading branch information
olegnn authored Aug 13, 2024
1 parent e976f72 commit d73d77a
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 4 deletions.
36 changes: 33 additions & 3 deletions .github/workflows/docker_hub_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
- mainnet_next

jobs:
build-docker-image:
build-production-docker-image:
runs-on: ubuntu-latest
steps:
- name: checkout
Expand Down Expand Up @@ -41,7 +41,7 @@ jobs:
echo "TAG_NAME=$TAG_NAME" >> $GITHUB_OUTPUT
echo "SPEC_NAME=$SPEC_NAME" >> $GITHUB_OUTPUT
- name: 'Build production ${{ steps.image_tag.outputs.TAG_NAME }} image'
- name: "Build production ${{ steps.image_tag.outputs.TAG_NAME }} image"
if: steps.image_tag.outputs.TAG_NAME != 'master'
uses: docker/build-push-action@v3
with:
Expand All @@ -51,7 +51,37 @@ jobs:
build-args: features=--features=${{ steps.image_tag.outputs.SPEC_NAME }},wasmtime
tags: docknetwork/dock-substrate:${{ steps.image_tag.outputs.TAG_NAME }}

- name: 'Build release fastblock_${{ steps.image_tag.outputs.TAG_NAME }} image'
build-fastblock-docker-image:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2

- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

- name: Set tag name
id: image_tag
shell: bash
run: |
export TAG_NAME=master
if [[ '${{github.ref_name}}' == 'mainnet' || '${{github.ref_name}}' == 'testnet' || '${{github.ref_name}}' == 'mainnet_next' ]];
then
export TAG_NAME=${{github.ref_name}}
if [[ $TAG_NAME == 'mainnet_next' ]]
then
export SPEC_NAME='mainnet'
else
export SPEC_NAME=$TAG_NAME
fi
fi
echo "TAG_NAME=$TAG_NAME" >> $GITHUB_OUTPUT
echo "SPEC_NAME=$SPEC_NAME" >> $GITHUB_OUTPUT
- name: "Build release fastblock_${{ steps.image_tag.outputs.TAG_NAME }} image"
uses: docker/build-push-action@v3
with:
context: .
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ jobs:
- name: Install WASM
run: rustup target add wasm32-unknown-unknown --toolchain nightly-2023-03-09
# Temporary solution: disk space is exceeded on the runner machine
- run: ./scripts/integration_tests
# - run: ./scripts/integration_tests

0 comments on commit d73d77a

Please sign in to comment.