Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cardanosolutions/gh-action-cardano-node-ogmios-docker-sync
A GitHub Action to sync cardano-node-ogmios using Docker
https://github.com/cardanosolutions/gh-action-cardano-node-ogmios-docker-sync
action ci continuous-integration github-actions
Last synced: 25 days ago
JSON representation
A GitHub Action to sync cardano-node-ogmios using Docker
- Host: GitHub
- URL: https://github.com/cardanosolutions/gh-action-cardano-node-ogmios-docker-sync
- Owner: CardanoSolutions
- License: mpl-2.0
- Created: 2021-06-29T05:46:12.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-07-20T15:47:19.000Z (over 1 year ago)
- Last Synced: 2024-11-15T23:37:10.754Z (about 1 month ago)
- Topics: action, ci, continuous-integration, github-actions
- Language: Shell
- Homepage:
- Size: 15.6 KB
- Stars: 1
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `cardano-node-ogmios` Docker Sync GitHub Action
Use this action to sync an instance of `cardano-node-ogmios` into a cache to
enable integration testing within a GitHub Workflow. As demonstrated in the
[Ogmios repository](), the [network synchronization workflow]() synchronizes a testnet instance
every six hours, which is then pushed to a cache used in the [continuous integration workflow]().['Ogmios repository']: https://github.com/CardanoSolutions/ogmios
[network synchronization workflow]: https://github.com/CardanoSolutions/ogmios/blob/master/.github/workflows/network-synchronization.yaml
[continuous integration workflow]: https://github.com/CardanoSolutions/ogmios/blob/master/.github/workflows/continuous-integration.yaml# Usage
see [action.yml](https://github.com/CardanoSolutions/gh-action-cardano-node-ogmios-docker-sync/blob/master/action.yml) for all possible options.
## Basic
Be aware that this will do a full resync on every run.
```yaml
steps:
- uses: actions/checkout@v2- uses: CardanoSolutions/cardano-node-ogmios-docker-sync@v1
```## With cache and multiple networks
```yaml
strategy:
matrix:
network: [ testnet, mainnet ]steps:
- uses: actions/checkout@v2- id: date-time
shell: bash
run: |
echo "::set-output name=value::$(/bin/date -u "+%Y%m%d-%H%M%S")"- uses: actions/cache@v2
with:
path: ${{ runner.temp }}/db-${{ matrix.network }}
key: cardano-node-${{ matrix.network }}-${{ steps.date-time.outputs.value }}
restore-keys: |
cardano-node-${{ matrix.network }}- uses: CardanoSolutions/cardano-node-ogmios-docker-sync@v1
with:
db-dir: ${{ runner.temp }}/db-${{ matrix.network }}
network: ${{ matrix.network }}
```