From 17e314b6590e6d1d6c5aa9a758ddcc554df83c7a Mon Sep 17 00:00:00 2001 From: Shion Ichikawa Date: Sun, 14 Apr 2024 13:48:11 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5=20nginx=20related=20files?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy-nginx.yml | 41 ------------------------------ docker/nginx/Dockerfile | 6 ----- docker/nginx/default.conf | 10 -------- docker/nginx/nginx.conf | 0 docker/nginx/www/.gitkeep | 0 5 files changed, 57 deletions(-) delete mode 100644 .github/workflows/deploy-nginx.yml delete mode 100644 docker/nginx/Dockerfile delete mode 100644 docker/nginx/default.conf delete mode 100644 docker/nginx/nginx.conf delete mode 100644 docker/nginx/www/.gitkeep diff --git a/.github/workflows/deploy-nginx.yml b/.github/workflows/deploy-nginx.yml deleted file mode 100644 index 2a8ef13..0000000 --- a/.github/workflows/deploy-nginx.yml +++ /dev/null @@ -1,41 +0,0 @@ -name: Build&Push Nginx image to GAR -on: - push: - branches: - - main -jobs: - build-and-deploy: - runs-on: ubuntu-latest - permissions: - contents: 'read' - id-token: 'write' - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - - name: Login to Google Cloud - id: auth - uses: google-github-actions/auth@v2 - with: - token_format: access_token - workload_identity_provider: 'projects/228944830644/locations/global/workloadIdentityPools/gh-pool/providers/provider-github' - service_account: 'gh-actions@lgtmgen-project.iam.gserviceaccount.com' - - - name: Authorize Docker - id: docker-auth - uses: docker/login-action@v3 - with: - username: 'oauth2accesstoken' - password: ${{ steps.auth.outputs.access_token }} - registry: asia-northeast1-docker.pkg.dev - - - name: Build and push Docker image - uses: docker/build-push-action@v5 - with: - push: true - tags: asia-northeast1-docker.pkg.dev/lgtmgen-project/dev-main/nginx:latest - file: ./docker/nginx/Dockerfile - context: ./docker/nginx diff --git a/docker/nginx/Dockerfile b/docker/nginx/Dockerfile deleted file mode 100644 index dee415c..0000000 --- a/docker/nginx/Dockerfile +++ /dev/null @@ -1,6 +0,0 @@ -FROM nginx:1.25.3-alpine - -COPY default.conf /etc/nginx/conf.d/default.conf -COPY nginx.conf /etc/nginx/conf.d/nginx.conf -COPY www /var/www -CMD ["nginx", "-g", "daemon off;"] diff --git a/docker/nginx/default.conf b/docker/nginx/default.conf deleted file mode 100644 index 01455bb..0000000 --- a/docker/nginx/default.conf +++ /dev/null @@ -1,10 +0,0 @@ -server { - listen 80; - server_name _; - location /api { - proxy_pass http://localhost:8080; - } - location / { - proxy_pass http://localhost:3000; - } -} diff --git a/docker/nginx/nginx.conf b/docker/nginx/nginx.conf deleted file mode 100644 index e69de29..0000000 diff --git a/docker/nginx/www/.gitkeep b/docker/nginx/www/.gitkeep deleted file mode 100644 index e69de29..0000000