DC-14635: hereconnect.condev.ru -> hcqr.ru
Deploy app frontend / app frontend (push) Failing after 1m33s

This commit is contained in:
2024-12-19 09:31:06 +02:00
parent 0e37ebfe5f
commit 68e267f44c
4 changed files with 12 additions and 12 deletions
+9 -9
View File
@@ -24,8 +24,8 @@ jobs:
VITE_MANIFEST_SHORT_NAME: НаСвязи
VITE_MANIFEST_ID: https://hereconnect.condev.ru
VITE_READ_BASE_URL: ${{ vars.READ_BASE_URL }}
#VITE_MANIFEST_START_URL: https://hereconnect.condev.ru/
#VITE_MANIFEST_SCOPE: https://hereconnect.condev.ru/
#VITE_MANIFEST_START_URL: https://hcqr.ru/
#VITE_MANIFEST_SCOPE: https://hcqr.ru/
steps:
- uses: actions/checkout@v4
@@ -43,29 +43,29 @@ jobs:
pnpm deploy --filter ./apps/frontend build/frontend
- name: build production
run: cd build/frontend && bun vite build --emptyOutDir --outDir /www/hereconnect.condev.ru/build-${{env.GITHUB_SHA}}-prod/
run: cd build/frontend && bun vite build --emptyOutDir --outDir /www/hcqr.ru/build-${{env.GITHUB_SHA}}-prod/
- name: compress production with Brotli
uses: StefH/ghaction-CompressFiles@v2
with:
path: /www/hereconnect.condev.ru/build-${{env.GITHUB_SHA}}-prod/
path: /www/hcqr.ru/build-${{env.GITHUB_SHA}}-prod/
extensions: '.css,.html,.js,.svg,.eot,.ttf,.woff,.woff2,.ico'
tools: 'brotli'
- name: deploy production
run: mv -v /www/hereconnect.condev.ru/current-prod /www/hereconnect.condev.ru/old-prod && mv -v /www/hereconnect.condev.ru/build-${{env.GITHUB_SHA}}-prod /www/hereconnect.condev.ru/current-prod && rm -rf /www/hereconnect.condev.ru/old-prod
run: mv -v /www/hcqr.ru/current-prod /www/hcqr.ru/old-prod && mv -v /www/hcqr.ru/build-${{env.GITHUB_SHA}}-prod /www/hcqr.ru/current-prod && rm -rf /www/hcqr.ru/old-prod
- name: build dev
run: cd build/frontend && bun vite build --emptyOutDir --mode development --outDir /www/hereconnect.condev.ru/build-${{env.GITHUB_SHA}}-dev/
run: cd build/frontend && bun vite build --emptyOutDir --mode development --outDir /www/hcqr.ru/build-${{env.GITHUB_SHA}}-dev/
- name: deploy dev
run: mv -v /www/hereconnect.condev.ru/current-dev /www/hereconnect.condev.ru/old-dev && mv -v /www/hereconnect.condev.ru/build-${{env.GITHUB_SHA}}-dev /www/hereconnect.condev.ru/current-dev && rm -rf /www/hereconnect.condev.ru/old-dev
run: mv -v /www/hcqr.ru/current-dev /www/hcqr.ru/old-dev && mv -v /www/hcqr.ru/build-${{env.GITHUB_SHA}}-dev /www/hcqr.ru/current-dev && rm -rf /www/hcqr.ru/old-dev
- name: cleanup build directories
if: always()
run: |
echo "Found directories:"
find /www/hereconnect.condev.ru/ -maxdepth 1 -type d -name "build-${{env.GITHUB_SHA}}-*"
find /www/hcqr.ru/ -maxdepth 1 -type d -name "build-${{env.GITHUB_SHA}}-*"
echo "Deleting directories:"
find /www/hereconnect.condev.ru/ -maxdepth 1 -type d -name "build-${{env.GITHUB_SHA}}-*" -print -exec rm -rf {} +
find /www/hcqr.ru/ -maxdepth 1 -type d -name "build-${{env.GITHUB_SHA}}-*" -print -exec rm -rf {} +