Skip to content

Commit

Permalink
Merge pull request #13 from openimis/feature/cd
Browse files Browse the repository at this point in the history
Added continuus deployment
  • Loading branch information
jdolkowski committed Jun 12, 2023
2 parents 32140f1 + 5d7e53e commit 2016837
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/test-server-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Dispatched Workflow
on:
push:
branches:
- develop

jobs:
rebuild-test-server:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2

- name: Set up SSH
run: |
mkdir -p ~/.ssh
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
ssh-keyscan github.com >> ~/.ssh/known_hosts
env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}

- name: Run Docker Compose
run: |
ssh ${{ secrets.OPENIMIS_HOST }} -p 1022
cd /coreMIS
docker-compose pull && docker-compose up --build -d

0 comments on commit 2016837

Please sign in to comment.