-
Notifications
You must be signed in to change notification settings - Fork 49
62 lines (55 loc) · 1.85 KB
/
sync-from-snapshot-testnet-paritydb-pruned.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
---
# This workflow performs sync to Testnet from a pruned ParityDB snapshot using the latest
# main version.
name: Sync from snapshot, Testnet, ParityDB pruned
on:
# At 20:00 on Wednesday and Saturday
# Time corresponds with a snapshot creation time
schedule:
- cron: '0 20 * * 3,6'
workflow_dispatch:
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: false
jobs:
check-vars-and-secrets:
name: Check vars and secrets
uses: ./.github/workflows/_check-vars-and-secrets.yml
secrets: inherit
build-production-aleph-node:
needs: [check-vars-and-secrets]
name: Build production aleph-node
uses: ./.github/workflows/_build-aleph-node.yml
with:
ref: ${{ github.ref }}
production: true
test-sync:
needs: [build-production-aleph-node]
name: Download snapshot and run
runs-on: [self-hosted, Linux, X64, medium-1000GB]
timeout-minutes: 90
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Test sync
uses: ./.github/actions/sync-from-snapshot
with:
# yamllint disable-line rule:line-length
aleph-node-artifact-name: ${{ needs.build-production-aleph-node.outputs.artifact-name-binary }}
args: --testnet --parity-db --pruned
aws-access-key-id: ${{ secrets.AWS_TESTNET_S3_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_TESTNET_S3_SECRET_ACCESS_KEY }}
slack-notification:
name: Slack notification
runs-on: ubuntu-20.04
needs: [test-sync]
if: >
!cancelled() &&
github.event_name != 'workflow_dispatch'
steps:
- name: Send Slack message
uses: Cardinal-Cryptography/github-actions/slack-notification@v7
with:
notify-on: "failure"
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_DEV_ONDUTY }}