mirror of
https://github.com/fluencelabs/node-distro
synced 2025-04-25 23:42:14 +00:00
Move builtins to /builtins (#12)
This commit is contained in:
parent
76acdbff54
commit
d16d2863f4
13
.github/workflows/container.yml
vendored
13
.github/workflows/container.yml
vendored
@ -7,15 +7,19 @@ on:
|
|||||||
description: "Container tag"
|
description: "Container tag"
|
||||||
required: false
|
required: false
|
||||||
default: "latest"
|
default: "latest"
|
||||||
|
update_fluence:
|
||||||
|
description: Whether to update fluence.json
|
||||||
|
required: false
|
||||||
|
default: "false"
|
||||||
version:
|
version:
|
||||||
description: 'Fluence version'
|
description: 'Fluence version'
|
||||||
required: true
|
required: false
|
||||||
url:
|
url:
|
||||||
description: 'Fluence binary URL'
|
description: 'Fluence binary URL'
|
||||||
required: true
|
required: false
|
||||||
sha256:
|
sha256:
|
||||||
description: 'Fluence binary SHA256 hash'
|
description: 'Fluence binary SHA256 hash'
|
||||||
required: true
|
required: false
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-publish:
|
build-publish:
|
||||||
@ -23,11 +27,13 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
CONTAINER_TAG: ${{ github.event.inputs.container_tag || 'latest' }}
|
CONTAINER_TAG: ${{ github.event.inputs.container_tag || 'latest' }}
|
||||||
|
UPDATE_FLUENCE: ${{ github.event.inputs.update_fluence == 'true' || github.event.inputs.container_tag == '' }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Update Fluence in fluence.json to ${{ github.event.inputs.version }}
|
- name: Update Fluence in fluence.json to ${{ github.event.inputs.version }}
|
||||||
|
if: ${{ env.UPDATE_FLUENCE != 'false' }}
|
||||||
run: |
|
run: |
|
||||||
echo '
|
echo '
|
||||||
{
|
{
|
||||||
@ -63,6 +69,7 @@ jobs:
|
|||||||
TAG="${{ env.CONTAINER_TAG }}"
|
TAG="${{ env.CONTAINER_TAG }}"
|
||||||
RUN="${{ github.run_number }}"
|
RUN="${{ github.run_number }}"
|
||||||
TAGS=fluencelabs/node:${TAG},fluencelabs/node:${TAG}_v${RUN}
|
TAGS=fluencelabs/node:${TAG},fluencelabs/node:${TAG}_v${RUN}
|
||||||
|
TAGS=$TAGS,fluencelabs/fluence:${TAG},fluencelabs/fluence:${TAG}_v${RUN}
|
||||||
|
|
||||||
echo "TAGS=$TAGS" | tee -a $GITHUB_ENV
|
echo "TAGS=$TAGS" | tee -a $GITHUB_ENV
|
||||||
echo "BUILD_DATE=$(date '+%Y-%m-%dT%H:%M:%S%:z')"
|
echo "BUILD_DATE=$(date '+%Y-%m-%dT%H:%M:%S%:z')"
|
||||||
|
@ -22,7 +22,7 @@ autodeploy_particle_ttl = "60s"
|
|||||||
# default is /.fluence/v1/certificates
|
# default is /.fluence/v1/certificates
|
||||||
# certificate_dir = "./certificates"
|
# certificate_dir = "./certificates"
|
||||||
## directory for builtins
|
## directory for builtins
|
||||||
# default is /builtins
|
# default is /.fluence/v1/builtins
|
||||||
# builtins_base_dir = "./builtins"
|
# builtins_base_dir = "./builtins"
|
||||||
|
|
||||||
## Path to AIR interpreter .wasm is set to specific version by default
|
## Path to AIR interpreter .wasm is set to specific version by default
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
autodeploy_particle_ttl = "60s"
|
||||||
|
builtins_base_dir = "/builtins"
|
||||||
|
|
||||||
[root_key_pair]
|
[root_key_pair]
|
||||||
format = "ed25519"
|
format = "ed25519"
|
||||||
path = "/node.key"
|
path = "/node.key"
|
||||||
@ -6,8 +9,6 @@ path = "/node.key"
|
|||||||
format = "ed25519"
|
format = "ed25519"
|
||||||
generate_on_absence = true
|
generate_on_absence = true
|
||||||
|
|
||||||
autodeploy_particle_ttl = "60s"
|
|
||||||
|
|
||||||
[root_weights]
|
[root_weights]
|
||||||
12D3KooWDMWjFq1QZG5szbQRbyQ1A8wyrEJSQaFXwMyqkFeLoHTt = 3
|
12D3KooWDMWjFq1QZG5szbQRbyQ1A8wyrEJSQaFXwMyqkFeLoHTt = 3
|
||||||
12D3KooWLH6rijQ7eTAdA2pcg31ohZCTkWZywYvwTB3sUEjrn5PU = 4
|
12D3KooWLH6rijQ7eTAdA2pcg31ohZCTkWZywYvwTB3sUEjrn5PU = 4
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
{
|
{
|
||||||
"target": "krasnodar",
|
"target": "stage",
|
||||||
|
|
||||||
"environments": [
|
"environments": [
|
||||||
{
|
{
|
||||||
"name": "krasnodar",
|
"name": "krasnodar",
|
||||||
"container_tag": "latest_v233",
|
"container_tag": "latest_v259",
|
||||||
"containers_per_host": 1,
|
"containers_per_host": 1,
|
||||||
"external_bootstraps": [
|
"external_bootstraps": [
|
||||||
"/ip4/165.227.164.206/tcp/7001",
|
"/ip4/165.227.164.206/tcp/7001",
|
||||||
@ -69,7 +69,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "testnet",
|
"name": "testnet",
|
||||||
"container_tag": "latest_v233",
|
"container_tag": "latest_v259",
|
||||||
"containers_per_host": 1,
|
"containers_per_host": 1,
|
||||||
"external_bootstraps": [],
|
"external_bootstraps": [],
|
||||||
"hosts": [
|
"hosts": [
|
||||||
@ -130,7 +130,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "stage",
|
"name": "stage",
|
||||||
"container_tag": "latest_v233",
|
"container_tag": "latest_v259",
|
||||||
"containers_per_host": 5,
|
"containers_per_host": 5,
|
||||||
"hosts": [
|
"hosts": [
|
||||||
"134.209.186.43"
|
"134.209.186.43"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -o pipefail -o errexit -o nounset
|
set -o pipefail -o errexit -o nounset
|
||||||
|
|
||||||
BUILTINS_DIR=/.fluence/v1/builtins/
|
BUILTINS_DIR=/builtins/
|
||||||
TMP_BUILTINS=./tmp/builtins
|
TMP_BUILTINS=./tmp/builtins
|
||||||
|
|
||||||
mkdir -p $BUILTINS_DIR
|
mkdir -p $BUILTINS_DIR
|
||||||
|
Loading…
x
Reference in New Issue
Block a user