diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..9803132 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,26 @@ +name: Build and Deploy Locally + +on: + push: + branches: + - main + +jobs: + deploy: + runs-on: self-hosted + + steps: + - uses: actions/checkout@v2 + + - name: SSH and Deploy + uses: appleboy/ssh-action@master + with: + host: ${{ secrets.SERVER_IP }} + username: ${{ secrets.SERVER_USER }} + key: ${{ secrets.SERVER_SSH_KEY }} + script: | + cd /home/nikos/itb/ewc-poc/ewc-wallet-conformance-backend + git pull origin main + docker-compose down + docker-compose build + docker-compose up -d diff --git a/docker-compose copy.yml b/docker-compose copy.yml new file mode 100644 index 0000000..81381ad --- /dev/null +++ b/docker-compose copy.yml @@ -0,0 +1,9 @@ +version: '3' + +services: + + redis: + image: endimion13/rfc-100-issuer:0.0.1 + container_name: rfc-100 + ports: + - "3000:3000" diff --git a/docker-compose.yml b/docker-compose.yml index 81381ad..f1fbdf4 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,9 +1,8 @@ version: '3' services: - - redis: - image: endimion13/rfc-100-issuer:0.0.1 + rfc-issuer: container_name: rfc-100 + build: . ports: - "3000:3000"