From 02aa3dbf029aec605e811ff759a059c8a753fb2f Mon Sep 17 00:00:00 2001 From: piny940 <83708535+piny940@users.noreply.github.com> Date: Sun, 27 Oct 2024 18:58:28 +0900 Subject: [PATCH] remove bypass --- .github/workflows/prd-deploy.yaml | 56 +++++++++++++++---------------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/.github/workflows/prd-deploy.yaml b/.github/workflows/prd-deploy.yaml index 15f116f..ad1c21b 100644 --- a/.github/workflows/prd-deploy.yaml +++ b/.github/workflows/prd-deploy.yaml @@ -1,8 +1,8 @@ name: Build App for Production on: push: - # branches: - # - main + branches: + - main workflow_dispatch: permissions: @@ -32,32 +32,32 @@ jobs: spec: - "spec/**" - ".github/workflows/prd-deploy.yaml" - # prd-build-backend: - # runs-on: ubuntu-latest - # environment: production - # steps: - # - uses: actions/checkout@v4 - # - uses: ./.github/actions/docker-build - # with: - # gh-token: ${{ secrets.GITHUB_TOKEN }} - # github-actor: ${{ github.actor }} - # tags: ghcr.io/${{ github.repository }}-backend:1.0.${{ github.run_number }} - # path: "." - # prd-build-frontend: - # runs-on: ubuntu-latest - # environment: production - # needs: filter - # if: needs.filter.outputs.frontend == 'true' - # steps: - # - uses: actions/checkout@v4 - # - uses: ./.github/actions/docker-build - # with: - # gh-token: ${{ secrets.GITHUB_TOKEN }} - # github-actor: ${{ github.actor }} - # tags: ghcr.io/${{ github.repository }}-frontend:1.0.${{ github.run_number }} - # path: "./frontend" - # build-args: | - # NEXT_PUBLIC_BACKEND_URL=https://auth.piny940.com/api/v1 + prd-build-backend: + runs-on: ubuntu-latest + environment: production + steps: + - uses: actions/checkout@v4 + - uses: ./.github/actions/docker-build + with: + gh-token: ${{ secrets.GITHUB_TOKEN }} + github-actor: ${{ github.actor }} + tags: ghcr.io/${{ github.repository }}-backend:1.0.${{ github.run_number }} + path: "." + prd-build-frontend: + runs-on: ubuntu-latest + environment: production + needs: filter + if: needs.filter.outputs.frontend == 'true' + steps: + - uses: actions/checkout@v4 + - uses: ./.github/actions/docker-build + with: + gh-token: ${{ secrets.GITHUB_TOKEN }} + github-actor: ${{ github.actor }} + tags: ghcr.io/${{ github.repository }}-frontend:1.0.${{ github.run_number }} + path: "./frontend" + build-args: | + NEXT_PUBLIC_BACKEND_URL=https://auth.piny940.com/api/v1 build-doc: runs-on: ubuntu-latest