Skip to content

Commit

Permalink
added workflow for registration-admin
Browse files Browse the repository at this point in the history
  • Loading branch information
subru-37 committed Nov 24, 2024
1 parent 6af2c8f commit 2d23e8b
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
branches:
- main
- mvp

jobs:
build-and-push-core-admin:
Expand Down Expand Up @@ -75,3 +74,17 @@ jobs:
run: |
curl -X GET ${{ secrets.DEV_CORE_AUTH0_ACTIONS_DEPLOY_HOOK }}
curl -X GET ${{ secrets.PROD_CORE_AUTH0_ACTIONS_DEPLOY_HOOK }}
build-and-push-core-mailer:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- run: |
docker build -t registration-admin -f apps/registration-admin/Dockerfile .
- run: |
docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_PASSWORD }}
- run: |
docker tag registration-admin ${{ secrets.DOCKER_USER }}/registration-admin:latest
docker push ${{ secrets.DOCKER_USER }}/registration-admin:latest
5 changes: 5 additions & 0 deletions apps/registration-admin/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.turbo
dist
build
node_modules
.env*
29 changes: 29 additions & 0 deletions apps/registration-admin/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
FROM node:18-alpine AS builder
RUN apk add --no-cache libc6-compat
RUN apk update

WORKDIR /app

RUN npm install -g pnpm turbo

COPY ../../. .

RUN apk add --no-cache \
build-base \
cairo-dev \
pango-dev \
jpeg-dev \
giflib-dev \
librsvg \
python3

ENV PYTHON=/usr/bin/python3

RUN pnpm install

RUN pnpm run build --filter=registration-admin...

FROM node:18-alpine

EXPOSE 3004
CMD ["pnpm", "run", "dev"]
4 changes: 4 additions & 0 deletions apps/registration-admin/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@ import react from '@vitejs/plugin-react';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
preview:{
host: true,
port: 3004
}
});

0 comments on commit 2d23e8b

Please sign in to comment.