Skip to content

Commit

Permalink
feat: pindah ke step sendiri
Browse files Browse the repository at this point in the history
  • Loading branch information
reacto11mecha committed Jul 20, 2024
1 parent ec53897 commit e10854f
Showing 1 changed file with 5 additions and 19 deletions.
24 changes: 5 additions & 19 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,6 @@ jobs:
attendance: 'apps/client/attendance/package.json'
chooser: 'apps/client/chooser/package.json'
- uses: actions/checkout@v4
with:
repository: sora-vp/baseline-docker

- name: debug
run: ls

web:
needs: changes
if: github.repository == 'sora-vp/baseline' && needs.changes.outputs.web == 'true'
Expand All @@ -61,10 +54,6 @@ jobs:
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/sora-baseline-web:${{ github.ref_name }}

- uses: actions/checkout@v4
with:
repository: sora-vp/baseline-docker

processor:
needs: changes
if: github.repository == 'sora-vp/baseline' && needs.changes.outputs.processor == 'true'
Expand All @@ -90,10 +79,6 @@ jobs:
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/sora-baseline-processor:${{ github.ref_name }}

- uses: actions/checkout@v4
with:
repository: sora-vp/baseline-docker

client-attendance:
needs: changes
if: github.repository == 'sora-vp/baseline' && needs.changes.outputs.attendance == 'true'
Expand All @@ -119,10 +104,6 @@ jobs:
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/sora-baseline-client-attendance:${{ github.ref_name }}

- uses: actions/checkout@v4
with:
repository: sora-vp/baseline-docker

client-chooser:
needs: changes
if: github.repository == 'sora-vp/baseline' && needs.changes.outputs.chooser == 'true'
Expand All @@ -148,6 +129,11 @@ jobs:
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/sora-baseline-client-chooser:${{ github.ref_name }}

update-docker-compose-repo:
needs: [web, processor, client-attendance, client-chooser]
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
repository: sora-vp/baseline-docker

0 comments on commit e10854f

Please sign in to comment.