try to fix autodeploy
This commit is contained in:
commit
abcdbe4225
@ -1,13 +1,21 @@
|
|||||||
name: Deploy
|
name: Deploy
|
||||||
run-name: ${{ gitea.actor }} build image and push to container registry
|
run-name: ${{ gitea.actor }} build image and push to container registry
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- 'main'
|
- "main"
|
||||||
- 'staging'
|
- "staging"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
CreateImage:
|
||||||
|
runs-on: [frontstaging]
|
||||||
|
uses: http://gitea.pena/PenaDevops/actions.git/.gitea/workflows/build-image.yml@v1.1.6-p
|
||||||
|
with:
|
||||||
|
runner: frontstaging
|
||||||
|
secrets:
|
||||||
|
REGISTRY_USER: ${{ secrets.REGISTRY_USER }}
|
||||||
|
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
|
||||||
DeployService:
|
DeployService:
|
||||||
runs-on: [frontstaging]
|
runs-on: [frontstaging]
|
||||||
container:
|
container:
|
||||||
|
@ -4,7 +4,7 @@ run-name: ${{ gitea.actor }} produce linting
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- 'sdev'
|
- "sdev"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Lint:
|
Lint:
|
||||||
|
@ -1,9 +1,11 @@
|
|||||||
FROM gitea.pena/penadevops/container-images/node:main as build
|
FROM gitea.pena/penadevops/container-images/node-compose:main as build
|
||||||
|
|
||||||
RUN apk update && rm -rf /var/cache/apk/*
|
RUN apk update && rm -rf /var/cache/apk/*
|
||||||
WORKDIR /usr/app
|
WORKDIR /usr/app
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
RUN apk add bind-tools
|
||||||
|
RUN dig gitea.pena
|
||||||
RUN yarn install --ignore-scripts --non-interactive --frozen-lockfile && yarn cache clean
|
RUN yarn install --ignore-scripts --non-interactive --frozen-lockfile && yarn cache clean
|
||||||
RUN apk add cpulimit
|
RUN apk add cpulimit
|
||||||
RUN cpulimit -l 20 yarn build
|
RUN cpulimit -l 20 yarn build
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
version: "3.3"
|
|
||||||
services:
|
services:
|
||||||
admin_front:
|
admin_front:
|
||||||
container_name: admin_front
|
container_name: admin_front
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
image: gitea.pena:3000/penaside/adminfront:staging.3c7e7f5c3fe8bab2e55a3b2086e0ca278415847f
|
image: gitea.pena/penaside/adminfront/staging:$GITHUB_RUN_NUMBER
|
||||||
ports:
|
ports:
|
||||||
- 10.7.0.18:80:80
|
- 10.7.0.18:80:80
|
||||||
- 10.7.0.18:443:443
|
- 10.7.0.18:443:443
|
||||||
|
@ -50,7 +50,7 @@
|
|||||||
"zustand": "^4.3.8"
|
"zustand": "^4.3.8"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "craco start",
|
"start": "HOST=0.0.0.0 craco start",
|
||||||
"build": "craco build",
|
"build": "craco build",
|
||||||
"test": "craco test --env=node --transformIgnorePatterns \"node_modules/(?!@frontend)/\"",
|
"test": "craco test --env=node --transformIgnorePatterns \"node_modules/(?!@frontend)/\"",
|
||||||
"test:cart": "craco test src/utils/calcCart --transformIgnorePatterns \"node_modules/(?!@frontend)/\"",
|
"test:cart": "craco test src/utils/calcCart --transformIgnorePatterns \"node_modules/(?!@frontend)/\"",
|
||||||
@ -73,7 +73,6 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
|
|
||||||
"@babel/plugin-transform-private-property-in-object": "^7.23.4",
|
"@babel/plugin-transform-private-property-in-object": "^7.23.4",
|
||||||
"@eslint/js": "^9.3.0",
|
"@eslint/js": "^9.3.0",
|
||||||
"craco-alias": "^3.0.1",
|
"craco-alias": "^3.0.1",
|
||||||
|
Loading…
Reference in New Issue
Block a user