From 25fc1e7f3e83d26f49d338dffb49388ac215246d Mon Sep 17 00:00:00 2001 From: Bikash Date: Thu, 21 Dec 2023 12:16:07 +0530 Subject: [PATCH] Added ci workflow for website --- web/.github/workflows/build-container.yaml | 12 ++++++++++-- web/Taskfile.yaml | 4 ++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/web/.github/workflows/build-container.yaml b/web/.github/workflows/build-container.yaml index cdeeb43f3..093041dda 100644 --- a/web/.github/workflows/build-container.yaml +++ b/web/.github/workflows/build-container.yaml @@ -21,6 +21,14 @@ jobs: app: - auth - console + - website + include: + - app: auth + dockerFile: Dockerfile + - app: console + dockerFile: Dockerfile + - app: website + dockerFile: Dockerfile.website runs-on: ubuntu-latest name: Deploy to Docker Image steps: @@ -47,5 +55,5 @@ jobs: branch_name=${GITHUB_REF#refs/heads/} version_string="v${branch_name#release-}-nightly" - docker build --build-arg APP=${{matrix.app}} . -t ghcr.io/kloudlite/platform/web/${{matrix.app}}:$version_string --push - docker build --build-arg APP=${{matrix.app}} . -t ghcr.io/kloudlite/platform/web/${{matrix.app}}:commit-${GITHUB_SHA} --push \ No newline at end of file + docker build --build-arg APP=${{matrix.app}} -f ${{matrix.dockerFile}} . -t ghcr.io/kloudlite/platform/web/${{matrix.app}}:$version_string --push + docker build --build-arg APP=${{matrix.app}} -f ${{matrix.dockerFile}} . -t ghcr.io/kloudlite/platform/web/${{matrix.app}}:commit-${GITHUB_SHA} --push \ No newline at end of file diff --git a/web/Taskfile.yaml b/web/Taskfile.yaml index e3971bb22..ba62b354c 100644 --- a/web/Taskfile.yaml +++ b/web/Taskfile.yaml @@ -177,5 +177,5 @@ tasks: msg: "var tag must have a value" silent: false cmds: - - cd ./src/design-system && mkdir -p out && pnpm local:release - - docker buildx build --platform linux/amd64 . -t {{.tag}} -f Dockerfile.website + # - cd ./src/design-system && mkdir -p out && pnpm local:release + - docker buildx build . -t {{.tag}} -f Dockerfile.website