17 Commits

Author SHA1 Message Date
c9a8c56a4a Merge pull request #120 from Lapikud/workflow
Forgot to change migrations
2026-04-30 17:19:09 +03:00
a0d2b4933e Forgot to change migrations 2026-04-30 17:18:08 +03:00
64e138299a Merge pull request #119 from Lapikud/workflow
Only allow development branch to be built & deploy
2026-04-30 17:07:50 +03:00
f62f9ae299 Only allow development branch to be built & deploy 2026-04-30 17:05:49 +03:00
2a7424efae Merge pull request #118 from Lapikud/workflow
Main.yml fix
2026-04-30 16:58:42 +03:00
84d2012875 main fix 2026-04-30 16:57:14 +03:00
a2e062596c Merge pull request #117 from Lapikud/workflow
Change workflow to allow dev env
2026-04-30 16:56:04 +03:00
426f71e425 Workflow 2026-04-30 16:54:34 +03:00
Renkar
80f79e1784 Merge pull request #113 from Lapikud/workflow-update
Remove .next cache clear in workflow
2026-03-31 19:09:57 +03:00
c76c50a304 Remove .next cache clear in workflow 2026-03-31 19:08:01 +03:00
Renkar
bdab1b71f1 Merge pull request #112 from Lapikud/workflow-update
Ignore drizzle if branch is not main
2026-03-31 17:53:11 +03:00
fc33c899e2 Ignore drizzle if branch is not main 2026-03-31 17:31:43 +03:00
Renkar
cdbecf4b32 Merge pull request #111 from Lapikud/workflow-update
Attempt 2 for workflow
2026-03-31 17:23:43 +03:00
3b5f0dc2e5 Attempt 2 for workflow 2026-03-31 17:21:33 +03:00
Renkar
7570e6f287 Merge pull request #110 from Lapikud/workflow-update
Change workflow to build teaser-2026 page
2026-03-31 17:16:21 +03:00
7d45acc26f Build teaser-2026 into prod 2026-03-31 16:56:45 +03:00
Renkar
9e9d2c774c Merge pull request #109 from Lapikud/development
one more picture
2026-03-31 09:50:28 +03:00
3 changed files with 17 additions and 11 deletions

View File

@@ -2,21 +2,24 @@ name: build
on:
workflow_call:
inputs:
ref:
description: Branch or tag to checkout
required: false
default: development
type: string
secrets:
USER_AUTH:
required: true
jobs:
build:
runs-on: prox-1
runs-on: prox-2
steps:
- name: Clear .next cache
env:
SUDO_PASSWORD: ${{ secrets.USER_AUTH }}
run: echo "$SUDO_PASSWORD" | sudo -S rm -rf $GITHUB_WORKSPACE/.next
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}
- name: Setup Bun
uses: oven-sh/setup-bun@v2
@@ -28,13 +31,15 @@ jobs:
- name: Ensure symlink to database before Drizzle migrations
run: |
rm -rf $GITHUB_WORKSPACE/data
ln -s ~/data $GITHUB_WORKSPACE/data
rm -rf "$GITHUB_WORKSPACE/data"
ln -s /home/github/data "$GITHUB_WORKSPACE/data"
- name: Generate Drizzle schema
if: ${{ inputs.ref == 'main' }}
run: bun drizzle-kit generate
- name: Run Drizzle migrations
if: ${{ inputs.ref == 'main' }}
run: bun drizzle-kit migrate
- name: Build project

View File

@@ -8,7 +8,7 @@ on:
jobs:
deploy:
runs-on: prox-1
runs-on: prox-2
steps:
- name: Restart NextJS service
env:

View File

@@ -3,7 +3,8 @@ name: main
on:
push:
branches:
- main
- development
workflow_dispatch:
jobs:
build: