Skip to content

Commit

Permalink
Updating the CI-CD Pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
mhmdksh committed May 9, 2024
1 parent e75adbc commit 16131b8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/pipeline-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,12 @@ jobs:
username: ${{ secrets.STAGING_USERNAME }}
key: ${{ secrets.STAGING_PRIVATE_KEY }}
port: 22
script: |
script: |
cd $HOME/DeVouch-BE
git checkout develop
git checkout -- .
git pull
docker compose stop devouch squid-db
docker compose rm -v -f devouch squid-db
docker volume prune -f
docker rmi $(docker images | grep 'devouch' | awk '{print $3}')
docker compose up -d --build
docker image prune -a --force
4 changes: 2 additions & 2 deletions .github/workflows/start-devouch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ jobs:
username: ${{ secrets.STAGING_USERNAME }}
key: ${{ secrets.STAGING_PRIVATE_KEY }}
port: 22
script: |
script: |
cd $HOME/DeVouch-BE
docker compose up -d
docker compose up -d --build
4 changes: 2 additions & 2 deletions .github/workflows/stop-devouch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ jobs:
username: ${{ secrets.STAGING_USERNAME }}
key: ${{ secrets.STAGING_PRIVATE_KEY }}
port: 22
script: |
script: |
cd $HOME/DeVouch-BE
docker compose stop devouch squid-db
docker compose rm -f -v devouch squid-db
docker volume prune -f
docker rmi $(docker images | grep 'devouch' | awk '{print $3}')

0 comments on commit 16131b8

Please sign in to comment.