test/.gitea/workflows/mainnet-setup.yaml
nfel 4a2dbb4f3f
main: env
Signed-off-by: nfel <nfilsaraee@gmail.com>
2024-12-01 17:20:44 +03:30

48 lines
1.3 KiB
YAML

---
name: MainnetNodesSetup
run-name: ⚒️ 🚀
on:
push:
branches:
- "main"
jobs:
main-net:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- name: MN1
key: ${{ secrets.MN1KEY }}
HOST: ${{ env.MN1_HOST }}
PORT: ${{ env.MN1_PORT }}
USERNAME: ${{ env.MN1_USER }}
PASSWORD: ${{ env.MN1_PASS }}
steps:
- run: echo ${{ matrix.PASSWORD }}
# - uses: actions/checkout@v4
# with:
# token: 5b011e0389d2a368a2796152040c2e4817fddef2
# path: ./src
# submodules: recursive
# - name: copy file via ssh password
# uses: appleboy/scp-action@v0.1.7
# with:
# host: ${{ matrix.HOST }}
# username: ${{ matrix.USERNAME }}
# password: ${{ matrix.PASSWORD }}
# port: ${{ matrix.PORT }}
# source: "src/modules/node-setup"
# target: "~/NodeSetup/"
# - name: deploying via ssh
# uses: appleboy/ssh-action@v1.0.3
# with:
# host: ${{ matrix.HOST }}
# username: ${{ matrix.USERNAME }}
# password: ${{ matrix.PASSWORD }}
# port: ${{ matrix.PORT }}
# script: |
# cd NodeSetup
# ls -ashlR ./