Fix pipeline
Some checks failed
Unittests / unittests (push) Failing after 1m53s
Unittests / deploy-dev (push) Failing after 0s

This commit is contained in:
Adam Štrauch 2023-11-25 19:19:49 +01:00
parent 0f0b6dc210
commit 29ccaf10f4
Signed by: cx
GPG Key ID: 7262DAFE292BCE20

View File

@ -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"