Skip to content

Commit

Permalink
Create Remote-Docker-Test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ConvolutedDog committed Sep 4, 2024
1 parent d729e6b commit 80261e3
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/Remote-Docker-Test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Remote Docker Test Workflow

on: [push, pull_request, workflow_dispatch]

jobs:
deploy:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup SSH and run commands
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
port: ${{ secrets.PORT }}
username: ${{ secrets.USER_NAME }}
password: ${{ secrets.USER_PASSWORD }}
script: |
docker exec ${{ secrets.DOCKER_CONTAINER_ID }} /bin/bash -c "
export PATH=\"/usr/local/cmake-3.25.2-linux-x86_64/bin:$PATH\"
cd /prajna && rm -rf /prajna/build_release/*
git pull > /dev/null 2>&1 || true
./scripts/configure.sh release > ./scripts/configure.log
./scripts/build.sh release > ./scripts/build.log
./scripts/test.sh release
"

0 comments on commit 80261e3

Please sign in to comment.