Skip to content

Commit

Permalink
fix : docker
Browse files Browse the repository at this point in the history
  • Loading branch information
sycuuui committed Mar 21, 2024
1 parent 38153f7 commit 3f0bbbd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ jobs:
- name: Docker build & push
if: github.ref == 'refs/heads/main' # 메인 브랜치에 푸시했을 때만 실행
run: |
docker login -u ${{ secrets.DOCKERHUB_NAME }} -p ${{ secrets.DOCKERHUB_PASSWORD }}
docker build -t ${{ secrets.DOCKERHUB_NAME}}/${{ secrets.DOCKERHUB_REPOSITORY}} ./
docker push ${{ secrets.DOCKERHUB_NAME }}/${{ secrets.DOCKERHUB_REPOSITORY}}
echo $DOCKERHUB_TOKEN | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
docker build -t ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_REPOSITORY }}:latest ./
docker push ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_REPOSITORY }}:latest
# EC2로 배포
- name: Deploy to EC2
if: github.ref == 'refs/heads/main' # 메인 브랜치에 푸시했을 때만 실행
Expand Down

0 comments on commit 3f0bbbd

Please sign in to comment.