From dc01146fc94a3fae519eef4e6dfe8f84adf375dd Mon Sep 17 00:00:00 2001 From: jaeyo03 <137462767+jaeyo03@users.noreply.github.com> Date: Tue, 5 Nov 2024 19:27:14 +0900 Subject: [PATCH] build : delete nginx --- .github/workflows/docker-image.yml | 43 ------------------------------ 1 file changed, 43 deletions(-) delete mode 100644 .github/workflows/docker-image.yml diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml deleted file mode 100644 index f658a84..0000000 --- a/.github/workflows/docker-image.yml +++ /dev/null @@ -1,43 +0,0 @@ -name: Build, Push, and Deploy Docker Image - -on: - push: - branches: - - main # main 브랜치에 푸시될 때 트리거 - -jobs: - build-and-deploy: - runs-on: ubuntu-latest - steps: - # 1. 코드 체크아웃 - - name: Checkout repository - uses: actions/checkout@v4 - - # 2. node_modules 캐시 설정 (필요할 경우) - - name: Cache node_modules - uses: actions/cache@v4.1.2 - with: - path: ~/.npm # If using npm - # For yarn, use path: ~/.cache/yarn - key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-node-modules- - - # 3. Docker Hub에 로그인 - - name: Log in to Docker Hub - uses: docker/login-action@v3 - with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} - - # 4. Docker 이미지 빌드 및 푸시 - - name: Build Docker image - run: | - docker build \ - --build-arg VITE_KAKAO_MAP_KEY=${{ secrets.VITE_KAKAO_MAP_KEY }} \ - --build-arg VITE_KAKAO_REST_API_KEY=${{ secrets.VITE_KAKAO_REST_API_KEY }} \ - -t ${{ secrets.DOCKER_USERNAME }}/pocket4cut:v1 . - - - name: Push Docker image - run: | - docker push "${{ secrets.DOCKER_USERNAME }}/pocket4cut:v1"