forked from Cardinal-Cryptography/aleph-node
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (47 loc) · 1.72 KB
/
Copy path_build-synthetic-node.yml
File metadata and controls
52 lines (47 loc) · 1.72 KB
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
---
# This workflow builds synthetic network aleph-node docker, based on aleph-node:latest image
name: Build production node image and e2e client image
on:
workflow_call:
inputs:
artifact-aleph-node-image:
description: 'Name of aleph-node image stored in GH Artifacts'
type: string
required: true
outputs:
artifact-name-image:
description: 'Name of artifact aleph-node synthetic network image'
value: ${{ jobs.main.outputs.artifact-name-image }}
jobs:
main:
name: Build synthetic node docker image
runs-on: ubuntu-20.04
outputs:
artifact-name-image: ${{ steps.get-synthetic-network-artifact-image-name.outputs.name }}
steps:
- name: Checkout Source code
uses: actions/checkout@v4
- name: Download node docker image
uses: actions/download-artifact@v4
with:
name: ${{ inputs.artifact-aleph-node-image }}
- name: Load node docker image
shell: bash
run: docker load -i aleph-node.tar
- name: Build synthetic aleph-node image
shell: bash
run: |
export TERM=xterm-256color
scripts/synthetic-network/build_synthetic-network.sh
docker save -o aleph-node.tar aleph-node:syntheticnet
- name: Get synthetic aleph-node image name
id: get-synthetic-network-artifact-image-name
run: |
echo "name=aleph-release-synthetic-docker" >> $GITHUB_OUTPUT
- name: Upload synthetic aleph-node image
uses: actions/upload-artifact@v4
with:
name: ${{ steps.get-synthetic-network-artifact-image-name.outputs.name }}
path: aleph-node.tar
if-no-files-found: error
retention-days: 7