Skip to content

Commit

Permalink
dockerfile 1차 테스트
Browse files Browse the repository at this point in the history
  • Loading branch information
jsangmin99 committed Sep 5, 2024
1 parent 383fe3c commit 5449204
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,29 @@ jobs:
# restore-keys: |
# ${{ runner.os }}-docker-

# - name: Docker Hub login
# uses: docker/login-action@v2
# with:
# username: ${{ secrets.DOCKER_USERNAME }}
# password: ${{ secrets.DOCKER_PASSWORD }}
#
# - name: Build with Jib
# run: ./gradlew jib --image=jsangmin00/want_project:latest


- name: Docker Hub login
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build with Jib
run: ./gradlew jib --image=jsangmin00/want_project:latest

# Docker 빌드 및 푸시
- name: Docker Build
env:
REPOSITORY: jsangmin00/want_project
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
run: |
docker build -t jsangmin00/want_project:dockerfile -f ./Dockerfile .
# deploy:
Expand Down

0 comments on commit 5449204

Please sign in to comment.