Skip to content

Commit d8497b6

Browse files
authored
Update README.md
1 parent ab0daac commit d8497b6

File tree

1 file changed

+45
-1
lines changed

1 file changed

+45
-1
lines changed

README.md

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,48 @@ every six hours, which is then pushed to a cache used in the [continuous integra
77

88
['Ogmios repository']: https://github.com/CardanoSolutions/ogmios
99
[network synchronization workflow]: https://github.com/CardanoSolutions/ogmios/blob/master/.github/workflows/network-synchronization.yaml
10-
[continuous integration workflow]: https://github.com/CardanoSolutions/ogmios/blob/master/.github/workflows/continuous-integration.yaml
10+
[continuous integration workflow]: https://github.com/CardanoSolutions/ogmios/blob/master/.github/workflows/continuous-integration.yaml
11+
12+
# Usage
13+
14+
see [action.yml](https://github.com/CardanoSolutions/gh-action-cardano-node-ogmios-docker-sync/blob/master/action.yml) for all possible options.
15+
16+
17+
## Basic
18+
19+
Be aware that this will do a full resync on every run.
20+
21+
```yaml
22+
steps:
23+
- uses: actions/checkout@v2
24+
25+
- uses: CardanoSolutions/cardano-node-ogmios-docker-sync@v1
26+
```
27+
28+
## With cache and multiple networks
29+
30+
```yaml
31+
strategy:
32+
matrix:
33+
network: [ testnet, mainnet ]
34+
35+
steps:
36+
- uses: actions/checkout@v2
37+
38+
- id: date
39+
shell: bash
40+
run: |
41+
echo "::set-output name=value::$(/bin/date -u "+%Y%m%d")"
42+
43+
- uses: actions/cache@v2
44+
with:
45+
path: ${{ runner.temp }}/db
46+
key: cardano-node-${{ matrix.network }}-${{ steps.date.outputs.value }}
47+
restore-keys: |
48+
cardano-node-${{ matrix.network }}
49+
50+
- uses: CardanoSolutions/cardano-node-ogmios-docker-sync@v1
51+
with:
52+
db-dir: ${{ runner.temp }}/db
53+
network: ${{ matrix.network }}
54+
```

0 commit comments

Comments
 (0)