Skip to content

Commit

Permalink
ci/cd github actions def
Browse files Browse the repository at this point in the history
  • Loading branch information
endimion committed Apr 24, 2024
1 parent 95edc71 commit 0601059
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 3 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -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
9 changes: 9 additions & 0 deletions docker-compose copy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version: '3'

services:

redis:
image: endimion13/rfc-100-issuer:0.0.1
container_name: rfc-100
ports:
- "3000:3000"
5 changes: 2 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 0601059

Please sign in to comment.