mirror of
https://git.meshkee.com/cssd/cssd-front.git
synced 2026-10-11 20:53:17 +03:30
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bbb38b6738 | ||
|
|
c64ec3c997 | ||
|
|
e5bff5fd6e | ||
|
|
bd97db254e | ||
|
|
9f17ca4c4a |
@@ -1,4 +1,4 @@
|
|||||||
name: Balout-Admin-Publish
|
name: CSSD-Front-Publish
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -19,13 +19,13 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: https://git.meshkee.com/actions/checkout@main
|
||||||
|
|
||||||
- name: Setup Docker buildx
|
- name: Setup Docker buildx
|
||||||
uses: docker/setup-buildx-action@v2.10.0
|
uses: https://git.meshkee.com/actions/setup-buildx-action@master
|
||||||
|
|
||||||
- name: Log into registry git.meshkee.com
|
- name: Log into registry git.meshkee.com
|
||||||
uses: docker/login-action@v2.2.0
|
uses: https://git.meshkee.com/actions/login-action@master
|
||||||
with:
|
with:
|
||||||
registry: git.meshkee.com
|
registry: git.meshkee.com
|
||||||
username: ${{ vars.DOCKER_USERNAME }}
|
username: ${{ vars.DOCKER_USERNAME }}
|
||||||
@@ -33,7 +33,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
id: build-and-push
|
id: build-and-push
|
||||||
uses: docker/build-push-action@v4.2.1
|
uses: https://git.meshkee.com/actions/build-push-action@master
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: true
|
push: true
|
||||||
@@ -56,7 +56,7 @@ jobs:
|
|||||||
|
|
||||||
# steps:
|
# steps:
|
||||||
# - name: Deploy to server
|
# - name: Deploy to server
|
||||||
# uses: appleboy/ssh-action@v1.0.0
|
# uses: https://git.meshkee.com/actions/ssh-action@master
|
||||||
# with:
|
# with:
|
||||||
# host: ${{ secrets.SSH_HOST }}
|
# host: ${{ secrets.SSH_HOST }}
|
||||||
# username: ${{ secrets.SSH_USER }}
|
# username: ${{ secrets.SSH_USER }}
|
||||||
|
|||||||
+9
-21
@@ -1,30 +1,18 @@
|
|||||||
FROM --platform=linux/amd64 git.meshkee.com/packages/node:14 AS build-stage
|
FROM git.meshkee.com/packages/node:14 AS build
|
||||||
|
|
||||||
ARG REGISTRY_TOKEN
|
|
||||||
|
|
||||||
ARG REGISTRY_PROXY
|
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
|
RUN npm install
|
||||||
|
|
||||||
RUN npm config set _auth=$REGISTRY_TOKEN
|
COPY . .
|
||||||
|
|
||||||
RUN npm config set strict-ssl=false
|
|
||||||
|
|
||||||
RUN npm cache clean --force
|
|
||||||
|
|
||||||
RUN npm i
|
|
||||||
|
|
||||||
COPY ./ .
|
|
||||||
|
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
# production stage
|
|
||||||
FROM nginx as production-stage
|
|
||||||
|
|
||||||
RUN mkdir /app
|
FROM git.meshkee.com/packages/node:14 AS runtime
|
||||||
|
|
||||||
COPY --from=build-stage /app/dist /app
|
WORKDIR /app
|
||||||
|
COPY --from=build /app/.output .output
|
||||||
|
|
||||||
|
EXPOSE 3000
|
||||||
|
CMD ["node", ".output/server/index.mjs"]
|
||||||
|
|
||||||
COPY nginx.conf /etc/nginx/nginx.conf
|
|
||||||
Reference in New Issue
Block a user