Skip to content

Commit

Permalink
refactor/deployement (#250)
Browse files Browse the repository at this point in the history
* this file will be change

* updated the image creation
  • Loading branch information
JustDams authored Feb 6, 2023
1 parent cc8ca56 commit 7dca254
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 21 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
name: remote ssh command
on:
push:
branches: [main]
jobs:
# name: remote ssh command
# on:
# push:
# branches: [main]
# jobs:

build:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: executing remote ssh commands using password
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
port: ${{ secrets.PORT }}
script: |
cd ${{ secrets.REPO }}
git pull
docker-compose -f docker-compose.prod.yml restart
# build:
# name: Deploy
# runs-on: ubuntu-latest
# steps:
# - name: executing remote ssh commands using password
# uses: appleboy/ssh-action@master
# with:
# host: ${{ secrets.HOST }}
# username: ${{ secrets.USERNAME }}
# password: ${{ secrets.PASSWORD }}
# port: ${{ secrets.PORT }}
# script: |
# cd ${{ secrets.REPO }}
# git pull
# docker-compose -f docker-compose.prod.yml restart
3 changes: 2 additions & 1 deletion .github/workflows/dockerhub-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ name: Publish Docker image

on:
push:
branches: ["release"]
tags:
- 'v*'

jobs:
push_to_registry:
Expand Down

0 comments on commit 7dca254

Please sign in to comment.