diff --git a/.github/workflows/github-actions.yml b/.github/workflows/github-actions.yml index b72095c..ada2e94 100644 --- a/.github/workflows/github-actions.yml +++ b/.github/workflows/github-actions.yml @@ -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 @@ -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