try to fix autodeploy
All checks were successful
Deploy / CreateImage (push) Successful in 9m36s
Deploy / DeployService (push) Successful in 22s

This commit is contained in:
skeris 2025-02-10 17:03:52 +03:00
commit abcdbe4225
6 changed files with 17 additions and 14032 deletions

@ -1,13 +1,21 @@
name: Deploy
run-name: ${{ gitea.actor }} build image and push to container registry
on:
on:
push:
branches:
- 'main'
- 'staging'
- "main"
- "staging"
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:
runs-on: [frontstaging]
container:

@ -4,7 +4,7 @@ run-name: ${{ gitea.actor }} produce linting
on:
push:
branches:
- 'sdev'
- "sdev"
jobs:
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/*
WORKDIR /usr/app
COPY . .
RUN apk add bind-tools
RUN dig gitea.pena
RUN yarn install --ignore-scripts --non-interactive --frozen-lockfile && yarn cache clean
RUN apk add cpulimit
RUN cpulimit -l 20 yarn build

@ -1,9 +1,8 @@
version: "3.3"
services:
admin_front:
container_name: admin_front
restart: unless-stopped
image: gitea.pena:3000/penaside/adminfront:staging.3c7e7f5c3fe8bab2e55a3b2086e0ca278415847f
image: gitea.pena/penaside/adminfront/staging:$GITHUB_RUN_NUMBER
ports:
- 10.7.0.18:80:80
- 10.7.0.18:443:443

@ -50,7 +50,7 @@
"zustand": "^4.3.8"
},
"scripts": {
"start": "craco start",
"start": "HOST=0.0.0.0 craco start",
"build": "craco build",
"test": "craco test --env=node --transformIgnorePatterns \"node_modules/(?!@frontend)/\"",
"test:cart": "craco test src/utils/calcCart --transformIgnorePatterns \"node_modules/(?!@frontend)/\"",
@ -73,7 +73,6 @@
]
},
"devDependencies": {
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
"@babel/plugin-transform-private-property-in-object": "^7.23.4",
"@eslint/js": "^9.3.0",
"craco-alias": "^3.0.1",

14023
yarn.lock

File diff suppressed because it is too large Load Diff