Skip to content

Commit

Permalink
Rework network synchronization job to be 'network agnostic' and prepa…
Browse files Browse the repository at this point in the history
…re final version.
  • Loading branch information
KtorZ committed May 13, 2021
1 parent bd84a24 commit 1d68299
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/wip.yaml
Expand Up @@ -6,29 +6,34 @@ on:

jobs:
server:
strategy:
matrix:
network: [ testnet ]

runs-on: ubuntu-latest
steps:

- name: 📥 Checkout repository
uses: actions/checkout@v2.3.3

- name: 💾 Cache Containers
- name: 💾 Cache Volumes
id: cache
uses: actions/cache@v2.1.1
with:
path: ./data
key: cardano-node
key: cardano-node-${{ matrix.network }}-nightly

- name: 🔨 Overwrite docker-compose.yml
- name: 🩹 Overwrite docker-compose.yml
shell: bash
run: |
sed -i "s@node-db:/data@./data:/data@" docker-compose.yml
- name: 💽 Run Container
- name: 🖧 Synchronize Node
env:
NETWORK: testnet
NETWORK: ${{ matrix.network }}
SYNCTIME: 60
run: |
docker-compose up -d cardano-node
sleep 60
sleep $SYNCTIME
docker-compose logs cardano-node
docker-compose down

0 comments on commit 1d68299

Please sign in to comment.