diff --git a/.github/workflows/deploy-dev-instance.yml b/.github/workflows/deploy-dev-instance.yml new file mode 100644 index 000000000..e847796be --- /dev/null +++ b/.github/workflows/deploy-dev-instance.yml @@ -0,0 +1,24 @@ +name: Docker Compose + +on: + push: + branches: [yadhap/cicd, dev] + +jobs: + deploy: + runs-on: self-hosted + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Navigate to project directory and deploy + run: | + cd ~/Tombolo/Tombolo + git checkout dev + git stash + git pull + git stash apply + sudo docker-compose down + sudo docker-compose build + sudo docker-compose up -d