Skip to content

Commit

Permalink
Added ci workflow for website
Browse files Browse the repository at this point in the history
  • Loading branch information
Bikash authored and Bikash committed Dec 21, 2023
1 parent 6368b57 commit c8ba2b7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/build-container.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
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
4 changes: 2 additions & 2 deletions Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit c8ba2b7

Please sign in to comment.