Skip to content

Commit

Permalink
fix: mengembalikan fungsi yang lain seperti semula
Browse files Browse the repository at this point in the history
  • Loading branch information
reacto11mecha committed Jul 3, 2024
1 parent 888c5f0 commit 1c0e5e9
Showing 1 changed file with 78 additions and 78 deletions.
156 changes: 78 additions & 78 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,34 @@ name: Docker Image Build CI

on:
push:
# branches:
# - main
branches:
- main

jobs:
# web:
# if: github.repository == 'sora-vp/baseline'
web:
if: github.repository == 'sora-vp/baseline'

# runs-on: ubuntu-latest
runs-on: ubuntu-latest

# steps:
# - uses: actions/checkout@v3
steps:
- uses: actions/checkout@v3

# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

# - name: Login to Docker Hub
# uses: docker/login-action@v3
# with:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

# - name: Build the Docker image
# uses: docker/build-push-action@v5
# with:
# context: .
# file: "./apps/web/Dockerfile"
# push: true
# tags: ${{ secrets.DOCKERHUB_USERNAME }}/sora-baseline-web:${{ github.ref_name }}
- name: Build the Docker image
uses: docker/build-push-action@v5
with:
context: .
file: "./apps/web/Dockerfile"
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/sora-baseline-web:${{ github.ref_name }}

processor:
if: github.repository == 'sora-vp/baseline'
Expand All @@ -42,66 +42,66 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

# - name: Login to Docker Hub
# uses: docker/login-action@v3
# with:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build the Docker image
uses: docker/build-push-action@v5
with:
context: .
file: "./apps/processor/Dockerfile"
# push: true
# tags: ${{ secrets.DOCKERHUB_USERNAME }}/sora-baseline-web:${{ github.ref_name }}

# client-attendance:
# if: github.repository == 'sora-vp/baseline'

# runs-on: ubuntu-latest

# steps:
# - uses: actions/checkout@v3

# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v3

# - name: Login to Docker Hub
# uses: docker/login-action@v3
# with:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_TOKEN }}

# - name: Build the Docker image
# uses: docker/build-push-action@v5
# with:
# context: .
# file: "./apps/clients/attendance/Dockerfile"
# push: true
# tags: ${{ secrets.DOCKERHUB_USERNAME }}/sora-baseline-client-attendance:${{ github.ref_name }}

# client-chooser:
# if: github.repository == 'sora-vp/baseline'

# runs-on: ubuntu-latest

# steps:
# - uses: actions/checkout@v3

# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v3

# - name: Login to Docker Hub
# uses: docker/login-action@v3
# with:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_TOKEN }}

# - name: Build the Docker image
# uses: docker/build-push-action@v5
# with:
# context: .
# file: "./apps/clients/chooser/Dockerfile"
# push: true
# tags: ${{ secrets.DOCKERHUB_USERNAME }}/sora-baseline-client-chooser:${{ github.ref_name }}
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/sora-baseline-web:${{ github.ref_name }}

client-attendance:
if: github.repository == 'sora-vp/baseline'

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build the Docker image
uses: docker/build-push-action@v5
with:
context: .
file: "./apps/clients/attendance/Dockerfile"
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/sora-baseline-client-attendance:${{ github.ref_name }}

client-chooser:
if: github.repository == 'sora-vp/baseline'

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build the Docker image
uses: docker/build-push-action@v5
with:
context: .
file: "./apps/clients/chooser/Dockerfile"
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/sora-baseline-client-chooser:${{ github.ref_name }}

0 comments on commit 1c0e5e9

Please sign in to comment.