This commit is contained in:
parent
93cd9b1d8b
commit
f85d681f35
36
.gitea/workflows/deploy.yml
Normal file
36
.gitea/workflows/deploy.yml
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
name: Deploy
|
||||||
|
run-name: ${{ gitea.actor }} build image and push to container registry
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- 'main'
|
||||||
|
- 'staging'
|
||||||
|
- 'dev'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
Publish:
|
||||||
|
runs-on: ["skeris"]
|
||||||
|
conainer:
|
||||||
|
image: gitea.pena:3000/penadevops/container-images/node-compose:main
|
||||||
|
steps:
|
||||||
|
- name: Check out repository code
|
||||||
|
uses: http://gitea.pena:3000/PenaDevops/actions.git/checkout@v1
|
||||||
|
- name: Publish
|
||||||
|
run: |
|
||||||
|
git config --global user.email "kotilion.95@gmail.com"
|
||||||
|
git config --global user.name "skeris"
|
||||||
|
yarn install --force
|
||||||
|
npm config set @frontend:registry=http://gitea.pena/api/packages/skeris/npm/
|
||||||
|
npm config set -- '//gitea.pena/api/packages/skeris/npm/:_authToken' "1856e802057f59193ca6fdb4068cbea44982bcc2"
|
||||||
|
if [ "${{ github.ref }}" == "refs/heads/main" ]; then
|
||||||
|
npm version major
|
||||||
|
elif [ "${{ github.ref }}" == "refs/heads/staging" ]; then
|
||||||
|
npm version minor
|
||||||
|
else
|
||||||
|
npm version patch
|
||||||
|
fi
|
||||||
|
npm publish
|
||||||
|
|
||||||
|
|
||||||
|
|
4
.yarnrc
4
.yarnrc
@ -1 +1,3 @@
|
|||||||
"@frontend:registry" "http://gitea.pena/api/packages/skeris/npm/"
|
"@frontend:registry" "http://gitea.pena/api/packages/skeris/npm/"
|
||||||
|
# Для всех остальных - стандартный npmjs
|
||||||
|
"registry" "https://registry.npmjs.org/"
|
||||||
|
@ -71,5 +71,6 @@
|
|||||||
"react": "^19.0.0",
|
"react": "^19.0.0",
|
||||||
"react-router-dom": "^7.3.0",
|
"react-router-dom": "^7.3.0",
|
||||||
"zustand": "^5.0.3"
|
"zustand": "^5.0.3"
|
||||||
}
|
},
|
||||||
|
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user