commit after mergee

This commit is contained in:
Gagan7900
2026-07-28 12:22:32 +05:30
6 changed files with 46 additions and 41 deletions
+15 -10
View File
@@ -38,19 +38,25 @@ jobs:
env-slug: ${{ steps.env_config.outputs.INFISICAL_ENV }} env-slug: ${{ steps.env_config.outputs.INFISICAL_ENV }}
project-slug: "syscom-xpq-0" project-slug: "syscom-xpq-0"
domain: "https://infisical.biz360.me/" domain: "https://infisical.biz360.me/"
export-type: "file" # export-type: "file"
file-output-path: "/infisical.env" # file-output-path: "/infisical.env"
# - name: Brute-force overwrite environment.ts
# run: |
# source infisical.env
# # Forcefully overwrite the file the developers are importing
# echo "${!PROJECT_SECRET_KEY}" > "$ENV_FILE_PATH"
# # Clean up
# rm -f infisical.env
- name: Brute-force overwrite environment.ts - name: Brute-force overwrite environment.ts
run: | run: |
source infisical.env # Because the secret is now a native environment variable, we can write it directly.
# The double quotes around the indirect expansion preserve all newlines and internal single quotes!
# Forcefully overwrite the file the developers are importing
echo "${!PROJECT_SECRET_KEY}" > "$ENV_FILE_PATH" echo "${!PROJECT_SECRET_KEY}" > "$ENV_FILE_PATH"
# Clean up
rm -f infisical.env
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v3
@@ -67,7 +73,6 @@ jobs:
with: with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: | tags: |
type=ref,event=branch
type=raw,value=dev-{{date 'YYYYMMDDTHHmm'}},enable=${{ github.ref == 'refs/heads/dev' }} type=raw,value=dev-{{date 'YYYYMMDDTHHmm'}},enable=${{ github.ref == 'refs/heads/dev' }}
type=raw,value=prod-{{date 'YYYYMMDDTHHmm'}},enable=${{ github.ref == 'refs/heads/prod' }} type=raw,value=prod-{{date 'YYYYMMDDTHHmm'}},enable=${{ github.ref == 'refs/heads/prod' }}
@@ -75,7 +80,7 @@ jobs:
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5
with: with:
context: . context: .
file: ./docker/Dockerfile file: Dockerfile
push: true push: true
tags: ${{ steps.meta.outputs.tags }} tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}
+1
View File
@@ -52,3 +52,4 @@ eslint.config.js
# Ignore preview folder # Ignore preview folder
preview/ preview/
/.vs
+27
View File
@@ -0,0 +1,27 @@
# ----- Stage 1: Build Angular App -----
FROM node:22-alpine AS build
WORKDIR /app
# Copy package files
COPY package.json package-lock.json ./
# Install dependencies
RUN npm ci
# Copy the rest of the code
COPY . .
# Build the Angular app for production
RUN npm run build
# ----- Stage 2: Serve Angular App with Nginx -----
FROM nginx:alpine
# Copy the built assets from the build stage into Nginx's default HTML folder
COPY --from=build /app/preview /usr/share/nginx/html
# Expose standard HTTP port 80
EXPOSE 80
# Start Nginx in the foreground
CMD ["nginx", "-g", "daemon off;"]
-29
View File
@@ -1,29 +0,0 @@
# ----- Stage 1: Build Angular SSR App -----
FROM node:22-alpine AS build
WORKDIR /app
# Copy package files
COPY package.json package-lock.json ./
# Install dependencies
RUN npm ci
# Copy the rest of the code (including the environment.ts injected by Gitea Actions)
COPY . .
# Build the Angular app for production
RUN npm run build
# ----- Stage 2: Serve SSR App -----
FROM node:22-alpine AS final
WORKDIR /app
# Copy the built assets from the build stage.
COPY --from=build /app/preview ./preview
# Expose the standard Angular SSR port
EXPOSE 4000
# Start the Node.js SSR server
CMD ["node", "preview/server/server.mjs"]
+1 -1
View File
@@ -26,7 +26,7 @@ export const appConfig: ApplicationConfig = {
AngularFireModule, AngularFireModule,
provideCharts(withDefaultRegisterables()), provideCharts(withDefaultRegisterables()),
importProvidersFrom( importProvidersFrom(
AngularFireModule.initializeApp(environment.firebase), // AngularFireModule.initializeApp(environment.firebase),
ToastrModule.forRoot({ ToastrModule.forRoot({
timeOut: 1500, timeOut: 1500,
closeButton: true, closeButton: true,
+1
View File
@@ -4,6 +4,7 @@
"extends": "./tsconfig.json", "extends": "./tsconfig.json",
"compilerOptions": { "compilerOptions": {
"outDir": "./out-tsc/spec", "outDir": "./out-tsc/spec",
"rootDir": "src",
"types": [ "types": [
"vitest/globals" "vitest/globals"
] ]