Skip to content

Merge branch 'main' of https://github.com/a0uda/Reddit-BE #20

Merge branch 'main' of https://github.com/a0uda/Reddit-BE

Merge branch 'main' of https://github.com/a0uda/Reddit-BE #20

Workflow file for this run

# # CD Backend
# name: CD BE
# on:
# push:
# branches:
# - main
# jobs:
# build_push_docker:
# name: Build Backend For Prod files and push to docker
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - name: Build Backend For Prod files
# run: |
# docker build -t aoudaa/dkr-backend:latest .
# - name: Login to Docker Hub
# uses: docker/login-action@v2
# with:
# username: ${{ secrets.DOCKER_USERNAME }}
# password: ${{ secrets.DOCKER_PASSWORD }}
# - name: Push Docker Backend image
# run: |
# docker push aoudaa/dkr-backend:latest
# deploy:
# name: Deploy Backend For Prod files
# runs-on: ubuntu-latest
# needs: build_push_docker
# steps:
# - name: ssh into vm and run the script
# uses: appleboy/ssh-action@master
# with:
# host: ${{ secrets.HOST }}
# username: ${{ secrets.USERNAME }}
# key: ${{ secrets.SSH_KEY }}
# script: |
# cd ~/docker
# sh deployBE.sh