Skip to content

Commit

Permalink
ci: yml 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
GayeongKimm committed Jun 24, 2024
1 parent 665a6d0 commit d638ded
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: CI/CD using github actions & docker

on:
push:
branches: [ "main" ] # 해당 branch에 푸쉬 발생 시 업데이트
branches: [ "main" ]

jobs:
CI-CD:
Expand Down Expand Up @@ -51,4 +51,8 @@ jobs:
docker rm clock
docker rmi ${{ secrets.DOCKER_USERNAME }}/clock:latest
docker pull ${{ secrets.DOCKER_USERNAME }}/clock:latest
docker run -d -p 80:8080 --name clock ${{ secrets.DOCKER_USERNAME }}/clock:latest
docker run -d -p 80:8080 --name clock \
-e DB_URL=${{ secrets.DB_URL }} \
-e DB_USERNAME=${{ secrets.DB_USERNAME }} \
-e DB_PASSWORD=${{ secrets.DB_PASSWORD }} \
${{ secrets.DOCKER_USERNAME }}/clock:latest

0 comments on commit d638ded

Please sign in to comment.