Skip to content

Commit

Permalink
remove bypass
Browse files Browse the repository at this point in the history
  • Loading branch information
piny940 committed Oct 27, 2024
1 parent df763e4 commit 02aa3db
Showing 1 changed file with 28 additions and 28 deletions.
56 changes: 28 additions & 28 deletions .github/workflows/prd-deploy.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Build App for Production
on:
push:
# branches:
# - main
branches:
- main
workflow_dispatch:

permissions:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 02aa3db

Please sign in to comment.