Skip to content

Commit

Permalink
Merge pull request #110 from DatepollSystems/layout-v2
Browse files Browse the repository at this point in the history
Layout v2
  • Loading branch information
Dafnik authored May 30, 2024
2 parents 439bbce + 3193b88 commit 586fbfb
Show file tree
Hide file tree
Showing 165 changed files with 5,084 additions and 5,651 deletions.
62 changes: 62 additions & 0 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: preview

on: [pull_request]

# This allows a subsequently queued workflow run to interrupt previous runs
concurrency:
group: 'preview-${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true

jobs:
build-lava:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: dafnik/setup-node-pnpm@v3
with:
install-ignore-scripts: true

- name: Build
run: pnpm build:lava

- name: Upload lava build artifact
uses: actions/upload-artifact@v4
with:
name: lava
path: dist

# Deploy job
deploy-lava-preview:
name: Deploy lava preview
needs: build-lava

permissions:
pull-requests: write
actions: read

# Deploy to the preview environment
environment:
name: preview-${{ github.event.number }}
url: ${{ steps.deploy-preview.outputs.url }}

runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
name: lava
path: dist

- name: deploy preview
id: deploy-preview
uses: dafnik/ssp@v1
with:
host: preview.dafnik.me
username: ${{ secrets.PREVIEW_SSH_USER }}
key: ${{ secrets.PREVIEW_SSH_PRIVATE_KEY }}
port: ${{ secrets.PREVIEW_SSH_PORT }}
source: dist/*
target: /var/www/share/preview
strip_components: 3
6 changes: 6 additions & 0 deletions compose-local-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@ services:
- RATE_LIMIT_ENABLED=true
- RATE_LIMIT_DURATION_IN_SECONDS=120
- RATE_LIMIT_TRIES=40
- STRIPE_ENABLED=false
- STRIPE_KEYS_SECRET=sk_test
- STRIPE_KEYS_PUBLISHABLE=pk_test
- STRIPE_WEBHOOK_SEED_ENABLED=false
- STRIPE_WEBHOOK_URL=https://not-existing.kellner.team/api/v1/public/webhooks/stripe
- STRIPE_WEBHOOK_SECRET=testabc
networks:
- kellner-backend
# No healthcheck possible as the container is distroless and therefor has no bash nor other tools to make requests
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"build:stats": "rm -rf ./dist/WaiterRobot-Web/ && mkdir -p ./dist/WaiterRobot-Web && ng build --stats-json",
"analyze": "npm run build:stats && source-map-explorer dist/WaiterRobot-Web/**/*.js",
"tsc:check": "tsc",
"ci": "pnpm lint && pnpm format",
"lint": "eslint '**/*.{js,ts,html,json,md}' --fix",
"lint:check": "eslint '**/*.{js,ts,html,json,md}'",
"format:check": "prettier --check .",
Expand Down Expand Up @@ -50,7 +51,7 @@
"jspdf": "2.5.1",
"ng2-pdfjs-viewer": "^17.0.3",
"ngx-print": "^1.5.1",
"ngxtension": "3.0.1",
"ngxtension": "3.2.0",
"rxjs": "7.8.1",
"tslib": "2.6.2",
"zone.js": "0.14.4"
Expand Down
Loading

0 comments on commit 586fbfb

Please sign in to comment.