Fix pipeline
This commit is contained in:
parent
0f0b6dc210
commit
29ccaf10f4
@ -8,8 +8,6 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
unittests:
|
unittests:
|
||||||
runs-on: [amd64, moon]
|
runs-on: [amd64, moon]
|
||||||
env:
|
|
||||||
NODES: 192.168.1.236 192.168.1.220
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-go@v3
|
- uses: actions/setup-go@v3
|
||||||
@ -19,9 +17,14 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
make test
|
make test
|
||||||
deploy-dev:
|
deploy-dev:
|
||||||
|
runs-on: [amd64, moon]
|
||||||
|
env:
|
||||||
|
NODES: 192.168.1.236 192.168.1.220
|
||||||
|
steps:
|
||||||
- name: deploy
|
- name: deploy
|
||||||
run: |
|
run: |
|
||||||
docker run --rm --privileged -ti -v ${shell pwd}:/srv golang:1.20-buster /bin/sh -c "cd /srv && go build"
|
docker run --rm --privileged -ti -v ${shell pwd}:/srv golang:1.20-buster /bin/sh -c "cd /srv && go build"
|
||||||
|
|
||||||
ssh -o StrictHostKeyChecking=accept-new root@$HOST echo "Setting up host keys"
|
ssh -o StrictHostKeyChecking=accept-new root@$HOST echo "Setting up host keys"
|
||||||
for NODE in $NODES; do
|
for NODE in $NODES; do
|
||||||
echo "\033[0;32mDeploying $NODE\033[0m"
|
echo "\033[0;32mDeploying $NODE\033[0m"
|
||||||
|
Loading…
Reference in New Issue
Block a user