Skip to content

Commit

Permalink
Merge pull request #14 from Capic2024/ljy67122
Browse files Browse the repository at this point in the history
fix: action 수정
  • Loading branch information
ljy6712 authored Apr 9, 2024
2 parents 546c567 + 370b661 commit 4ff40e6
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ jobs:
with:
python-version: '3.11.6'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# pip install -r requirements.txt

# application.yml 파일 생성
- name: make application.yml
Expand All @@ -45,7 +45,12 @@ jobs:
- name: Docker build & push
if: github.ref == 'refs/heads/main' # 메인 브랜치에 푸시했을 때만 실행
run: |
docker login -u ${{ secrets.DOCKERHUB_NAME }} -p ${{ secrets.DOCKERHUB_PASSWORD }}
docker system prune
docker volume prune
docker volume ls
docker system df
docker build -t ${{ secrets.DOCKERHUB_NAME }}/${{ secrets.DOCKERHUB_REPOSITORY }}:latest .
docker push ${{ secrets.DOCKERHUB_NAME }}/${{ secrets.DOCKERHUB_REPOSITORY }}:latest
Expand Down

0 comments on commit 4ff40e6

Please sign in to comment.