Skip to content

Commit

Permalink
put everything in place
Browse files Browse the repository at this point in the history
  • Loading branch information
Kim Fehrs committed Sep 21, 2023
1 parent af6af17 commit 7fd84e7
Showing 1 changed file with 15 additions and 94 deletions.
109 changes: 15 additions & 94 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -304,78 +304,6 @@ jobs:
files: |
babylonnode-ubuntu-20.04
test-systemd:
runs-on: [ node-only ]
if: ${{ false }}
needs:
- build-jammy
- snyk-scan
steps:
- name: Checkout
uses: actions/checkout@v3.4.0
with:
fetch-depth: 0
- name: Download packaged cli
uses: actions/download-artifact@v3
with:
name: ubuntu 22.04
- name: Get dependencies
run: |
chmod +x ./babylonnode
sudo apt-get update
- name: Run systemd dependencies
run: |
chmod +x ./babylonnode
# ./babylonnode systemd dependencies
echo "expecting the dependencies to be already installed. Since the dependency command is interactive"
- name: Run systemd config
run: |
chmod +x ./babylonnode
echo "HOME=$HOME"
echo "PATH=$PWD"
./babylonnode systemd config -m CORE \
-n $NETWORK_ID \
-t $SEED_NODE \
-i 13.126.65.118 \
-v "" \
-k $KEYSTORE_PASSWORD -nk -a \
-dd /babylon-ledger
./babylonnode systemd stop
env:
KEYSTORE_PASSWORD: ${{secrets.KEYSTORE_PASSWORD}}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SEED_NODE: ${{ vars.SEED_NODE }}
NETWORK_ID: ${{ vars.NETWORK_ID }}
NETWORK_NAME: ${{ vars.NETWORK_NAME }}
- name: Run systemd install
run: |
chmod +x ./babylonnode
echo "HOME=$HOME"
echo "PATH=$PWD"
./babylonnode systemd install -a
- name: Get Logs and Status
run: |
sleep 15
sudo tail /var/log/syslog -n 100
./babylonnode auth set-admin-password --setupmode SYSTEMD -p $NGINX_ADMIN_PASSWORD
./babylonnode auth set-superadmin-password --setupmode SYSTEMD -p $NGINX_SUPERADMIN_PASSWORD
./babylonnode auth set-metrics-password --setupmode SYSTEMD -p $NGINX_METRICS_PASSWORD
NGINX_ADMIN_PASSWORD=$NGINX_ADMIN_PASSWORD ./babylonnode api system health
NGINX_ADMIN_PASSWORD=$NGINX_ADMIN_PASSWORD ./babylonnode api system version
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NGINX_ADMIN_PASSWORD: ${{secrets.NGINX_ADMIN_PASSWORD}}
NGINX_METRICS_PASSWORD: ${{secrets.NGINX_METRICS_PASSWORD}}
NGINX_SUPERADMIN_PASSWORD: ${{secrets.NGINX_SUPERADMIN_PASSWORD}}
- name: Stop systemd
run: |
chmod +x ./babylonnode
echo "HOME=$HOME"
echo "PATH=$PWD"
./babylonnode systemd stop
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

test-config-command:
runs-on: ubuntu-22.04
needs:
Expand Down Expand Up @@ -620,6 +548,9 @@ jobs:
runs-on: ubuntu-latest-16-cores

Check warning on line 548 in .github/workflows/ci.yml

View workflow job for this annotation

GitHub Actions / actionlint

[actionlint] .github/workflows/ci.yml#L548

label "ubuntu-latest-16-cores" is unknown. available labels are "windows-latest", "windows-2022", "windows-2019", "windows-2016", "ubuntu-latest", "ubuntu-22.04", "ubuntu-20.04", "ubuntu-18.04", "macos-latest", "macos-12", "macos-12.0", "macos-11", "macos-11.0", "macos-10.15", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file [runner-label]
Raw output
.github/workflows/ci.yml:548:14: label "ubuntu-latest-16-cores" is unknown. available labels are "windows-latest", "windows-2022", "windows-2019", "windows-2016", "ubuntu-latest", "ubuntu-22.04", "ubuntu-20.04", "ubuntu-18.04", "macos-latest", "macos-12", "macos-12.0", "macos-11", "macos-11.0", "macos-10.15", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file [runner-label]
# Docker Hub image that `container-job` executes in
container: ubuntu:22.04
needs:
- build-jammy
- snyk-scan
services:
postgres:
image: postgres
Expand All @@ -630,25 +561,20 @@ jobs:
--health-interval 10s
--health-timeout 5s
--health-retries 5
# Removed until the memory requirements can be met
# needs:
# - build-jammy
# - snyk-scan
steps:
- name: Checkout
uses: actions/checkout@v3.4.0
with:
fetch-depth: 0
# - name: Download packaged cli
# uses: actions/download-artifact@v3
# with:
# name: ubuntu 22.04
- name: Download packaged cli
uses: actions/download-artifact@v3
with:
name: ubuntu 22.04
- name: Get dependencies
run: |
# This is a temporary shortcut to speedup ci development circles
apt-get update
apt-get install -y containerd runc postgresql-client jq wget
wget -O babylonnode https://github.com/radixdlt/babylon-nodecli/releases/download/2.0.0/babylonnode-ubuntu-22.04
apt-get install -y containerd runc postgresql-client jq
chmod +x ./babylonnode
./babylonnode docker dependencies
apt-get update
Expand All @@ -672,26 +598,21 @@ jobs:
NETWORK_NAME: ${{ vars.NETWORK_NAME }}

Check warning on line 598 in .github/workflows/ci.yml

View workflow job for this annotation

GitHub Actions / actionlint

[actionlint] .github/workflows/ci.yml#L598

undefined variable "vars". available variables are "env", "github", "inputs", "job", "matrix", "needs", "runner", "secrets", "steps", "strategy" [expression]
Raw output
.github/workflows/ci.yml:598:29: undefined variable "vars". available variables are "env", "github", "inputs", "job", "matrix", "needs", "runner", "secrets", "steps", "strategy" [expression]

test-userflow-systemd-simple:
# Disabled for now
# if: ${{ false }}
runs-on: babylon-nodecli-systemd

Check warning on line 601 in .github/workflows/ci.yml

View workflow job for this annotation

GitHub Actions / actionlint

[actionlint] .github/workflows/ci.yml#L601

label "babylon-nodecli-systemd" is unknown. available labels are "windows-latest", "windows-2022", "windows-2019", "windows-2016", "ubuntu-latest", "ubuntu-22.04", "ubuntu-20.04", "ubuntu-18.04", "macos-latest", "macos-12", "macos-12.0", "macos-11", "macos-11.0", "macos-10.15", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file [runner-label]
Raw output
.github/workflows/ci.yml:601:14: label "babylon-nodecli-systemd" is unknown. available labels are "windows-latest", "windows-2022", "windows-2019", "windows-2016", "ubuntu-latest", "ubuntu-22.04", "ubuntu-20.04", "ubuntu-18.04", "macos-latest", "macos-12", "macos-12.0", "macos-11", "macos-11.0", "macos-10.15", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file [runner-label]
# Removed until the memory requirements can be met
# needs:
# - build-jammy
# - snyk-scan
needs:
- build-jammy
- snyk-scan
steps:
- name: Checkout
uses: actions/checkout@v3.4.0
with:
fetch-depth: 0
# - name: Download packaged cli
# uses: actions/download-artifact@v3
# with:
# name: ubuntu 22.04
- name: Download packaged cli
uses: actions/download-artifact@v3
with:
name: ubuntu 22.04
- name: Get dependencies
run: |
# This is a temporary shortcut to speedup ci development circles
wget -O babylonnode https://github.com/radixdlt/babylon-nodecli/releases/download/2.0.0/babylonnode-ubuntu-22.04
sudo apt-get update
sudo apt-get install -y jq
chmod +x ./babylonnode
Expand Down

0 comments on commit 7fd84e7

Please sign in to comment.