Skip to content

Commit

Permalink
test: docker hub token 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
EOTAEGYU committed Oct 11, 2024
1 parent a24a732 commit 85c3c41
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,22 @@ jobs:
working-directory: ./2024-UCD_WEB_SERVER # Spring Boot 프로젝트 폴더 경로
run: chmod +x gradlew

# 3. Spring Boot 애플리케이션 빌드
# 4. Spring Boot 애플리케이션 빌드
- name: Build with Gradle
working-directory: ./2024-UCD_WEB_SERVER # Spring Boot 프로젝트 폴더로 이동
run: ./gradlew clean build -x test

# 4. Docker 이미지 빌드
# 5. Docker 이미지 빌드
- name: Build Docker image
working-directory: ./2024-UCD_WEB_SERVER # Docker 빌드를 위해 동일 경로 설정
run: |
docker build -t eotaegyu/keynote.app:latest .
# 5. Docker Hub 로그인 (GitHub Secrets 사용)
# 6. Docker Hub 로그인 (GitHub Secrets 사용)
- name: Log in to Docker Hub
run: echo "${{ secrets.DOCKERHUB_USERNAME }}:${{ secrets.DOCKERHUB_TOKEN }}" | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin

# 6. Docker Hub에 이미지 푸시
# 7. Docker Hub에 이미지 푸시
- name: Push Docker image to Docker Hub
run: |
docker push eotaegyu/keynote.app:latest
Expand Down

0 comments on commit 85c3c41

Please sign in to comment.