Skip to content

Commit

Permalink
ci: fix yml
Browse files Browse the repository at this point in the history
  • Loading branch information
GayeongKimm committed Jun 24, 2024
1 parent 2cc3041 commit 3cdc5bc
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ jobs:
port: ${{ secrets.PORT }} #ssh port (22)
envs: GITHUB_SHA
script: |
docker stop clock
docker rm clock
docker rmi ${{ secrets.DOCKER_USERNAME }}/clock
docker pull ${{ secrets.DOCKER_USERNAME }}/clock
docker run -d -p 8080:8080 --name welspy ${{ secrets.DOCKER_USERNAME }}/clock
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
docker stop java
docker rm java
docker rmi ${{ secrets.DOCKER_USERNAME }}/java:latest
docker pull ${{ secrets.DOCKER_USERNAME }}/java:latest
docker run -d -p 80:8080 --name java ${{ secrets.DOCKER_USERNAME }}/java:latest

0 comments on commit 3cdc5bc

Please sign in to comment.