Update frontend to v24.11.26.832 #311
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- proof-of-concept | |
concurrency: | |
group: test-local-${{ github.ref }} | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: appleboy/[email protected] | |
with: | |
host: ${{ secrets.SSH_HOST }} | |
username: ${{ secrets.SSH_USERNAME }} | |
password: ${{ secrets.SSH_PASSWORD }} | |
port: ${{ secrets.SSH_PORT }} | |
script: | | |
cd /root/ds-etna | |
git pull | |
docker compose pull | |
docker compose up -d | |
docker compose up -d --build --force-recreate nginx | |
# test: | |
# runs-on: ubuntu-latest | |
# needs: | |
# - deploy | |
# steps: | |
# - uses: actions/checkout@v4 | |
# - uses: actions/setup-node@v4 | |
# with: | |
# node-version: lts/iron | |
# - name: Install test dependencies | |
# run: npm ci | |
# - name: Install Playwright browsers | |
# run: npx playwright install --with-deps | |
# - name: Run Playwright tests | |
# run: TEST_DOMAIN=https://develop.tna.dblclk.dev CI=true npx playwright test | |
# - uses: actions/upload-artifact@v4 | |
# if: always() | |
# with: | |
# name: playwright-report | |
# path: playwright-report/ | |
# retention-days: 30 | |
cleanup: | |
runs-on: ubuntu-latest | |
needs: | |
# - test | |
- deploy | |
steps: | |
- uses: appleboy/[email protected] | |
with: | |
host: ${{ secrets.SSH_HOST }} | |
username: ${{ secrets.SSH_USERNAME }} | |
password: ${{ secrets.SSH_PASSWORD }} | |
port: ${{ secrets.SSH_PORT }} | |
script: if df -hP -k /dev/sda1 | awk '{if ($5+0>=80) exit 1}'; then echo "Space OK"; else docker system prune --force --all --volumes; fi | |