diff --git a/.github/workflows/build-docker.yml b/.github/workflows/build-docker.yml index cc358c1..ae4b0e7 100644 --- a/.github/workflows/build-docker.yml +++ b/.github/workflows/build-docker.yml @@ -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' @@ -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 }}