File tree Expand file tree Collapse file tree 1 file changed +45
-1
lines changed Expand file tree Collapse file tree 1 file changed +45
-1
lines changed Original file line number Diff line number Diff line change @@ -7,4 +7,48 @@ every six hours, which is then pushed to a cache used in the [continuous integra
7
7
8
8
[ 'Ogmios repository' ] : https://github.com/CardanoSolutions/ogmios
9
9
[ 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
+ ` ` `
You can’t perform that action at this time.
0 commit comments