Skip to content

Commit

Permalink
fix: salah implementasi
Browse files Browse the repository at this point in the history
  • Loading branch information
reacto11mecha committed Jul 20, 2024
1 parent 194f6a6 commit 97fdaf6
Showing 1 changed file with 13 additions and 17 deletions.
30 changes: 13 additions & 17 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
# - main

jobs:
check-changes:
changes:
runs-on: ubuntu-latest
permissions:
pull-requests: read
Expand All @@ -25,18 +25,14 @@ jobs:
id: filter
with:
filters: |
web:
- 'apps/web/package.json'
processor:
- 'apps/processor/package.json'
attendance:
- 'apps/client/attendance/package.json'
chooser:
- 'apps/client/chooser/package.json'
web: 'apps/web/package.json'
processor: 'apps/processor/package.json'
attendance: 'apps/client/attendance/package.json'
chooser: 'apps/client/chooser/package.json'
web:
needs: check-changes
if: github.repository == 'sora-vp/baseline' && steps.filter.outputs.web == 'true'
needs: changes
if: github.repository == 'sora-vp/baseline' && needs.changes.outputs.web == 'true'
runs-on: ubuntu-latest

steps:
Expand All @@ -60,8 +56,8 @@ jobs:
tags: ${{ secrets.DOCKERHUB_USERNAME }}/sora-baseline-web:${{ github.ref_name }}

processor:
needs: check-changes
if: github.repository == 'sora-vp/baseline' && steps.filter.outputs.processor == 'true'
needs: changes
if: github.repository == 'sora-vp/baseline' && needs.changes.outputs.processor == 'true'
runs-on: ubuntu-latest

steps:
Expand All @@ -85,8 +81,8 @@ jobs:
tags: ${{ secrets.DOCKERHUB_USERNAME }}/sora-baseline-processor:${{ github.ref_name }}

client-attendance:
needs: check-changes
if: github.repository == 'sora-vp/baseline' && steps.filter.outputs.attendance == 'true'
needs: changes
if: github.repository == 'sora-vp/baseline' && needs.changes.outputs.attendance == 'true'
runs-on: ubuntu-latest

steps:
Expand All @@ -110,8 +106,8 @@ jobs:
tags: ${{ secrets.DOCKERHUB_USERNAME }}/sora-baseline-client-attendance:${{ github.ref_name }}

client-chooser:
needs: check-changes
if: github.repository == 'sora-vp/baseline' && steps.filter.outputs.chooser == 'true'
needs: changes
if: github.repository == 'sora-vp/baseline' && needs.changes.outputs.chooser == 'true'
runs-on: ubuntu-latest

steps:
Expand Down

0 comments on commit 97fdaf6

Please sign in to comment.