Skip to content

Commit

Permalink
CI/CD Done
Browse files Browse the repository at this point in the history
  • Loading branch information
alaneelee committed Dec 5, 2023
1 parent 16c0459 commit 5b17c1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ jobs:
key: ${{ secrets.PRIVATE_KEY }}
script: |
cd scripts
sudo docker ps -a -q --filter "name=app" | grep -q . && docker stop app && docker rm app | true
sudo docker ps -a -q --filter "name=streaming" | grep -q . && docker stop streaming && docker rm streaming | true
sudo docker rmi ${{ secrets.DOCKER_ID }}/${{ secrets.DOCKER_REPO }}
sudo docker pull ${{ secrets.DOCKER_ID }}/${{ secrets.DOCKER_REPO }}
docker run -d -p 8080:8080 --env-file=env_list.txt --name app ${{ secrets.DOCKER_ID }}/${{ secrets.DOCKER_REPO }}
docker run -d -p 8080:8080 --env-file=env_list.txt --name streaming ${{ secrets.DOCKER_ID }}/${{ secrets.DOCKER_REPO }}
docker rmi -f $(docker images -f "dangling=true" -q) || true

0 comments on commit 5b17c1c

Please sign in to comment.