updated ci/cd for local deployment #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Local Deployment | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build-and-deploy: | |
runs-on: self-hosted # Using the same VM that hosts the service | |
steps: | |
- uses: actions/checkout@v2 | |
name: Checkout code | |
- name: Build and Deploy | |
run: | | |
cd /home/nikos/itb/ewc-poc/ewc-wallet-conformance-backend | |
git pull origin main | |
docker-compose down | |
docker-compose build | |
docker-compose up -d |