Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mirlee0304 authored Jan 19, 2025
1 parent 8df9289 commit ac1ff8a
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,22 @@ jobs:

# 3. Docker 이미지 빌드
- name: Build and push Docker image
run: |
docker build \
--build-arg DB_USER=${{ secrets.DB_USER }} \
--build-arg DB_PASSWORD=${{ secrets.DB_PASSWORD }} \
-f ./discordchatbot/Dockerfile \
-t mirlee/discordchatbot:latest .
working-directory: discordchatbot # 작업 디렉토리 설정
run: |
docker build \
--build-arg DB_USER=${{ secrets.DB_USER }} \
--build-arg DB_PASSWORD=${{ secrets.DB_PASSWORD }} \
-t mirlee/discordchatbot:latest .
# 4. Docker Hub 로그인
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

# 5. Docker 이미지 푸시
- name: Push Docker Image
working-directory: discordchatbot # 작업 디렉토리 설정
run: |
docker push mirlee/discordchatbot:latest

0 comments on commit ac1ff8a

Please sign in to comment.