Fix pipeline
This commit is contained in:
parent
0f0b6dc210
commit
29ccaf10f4
@ -8,8 +8,6 @@ on:
|
||||
jobs:
|
||||
unittests:
|
||||
runs-on: [amd64, moon]
|
||||
env:
|
||||
NODES: 192.168.1.236 192.168.1.220
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-go@v3
|
||||
@ -19,9 +17,14 @@ jobs:
|
||||
run: |
|
||||
make test
|
||||
deploy-dev:
|
||||
runs-on: [amd64, moon]
|
||||
env:
|
||||
NODES: 192.168.1.236 192.168.1.220
|
||||
steps:
|
||||
- name: deploy
|
||||
run: |
|
||||
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"
|
||||
for NODE in $NODES; do
|
||||
echo "\033[0;32mDeploying $NODE\033[0m"
|
||||
|
Loading…
Reference in New Issue
Block a user