Skip to content

Commit

Permalink
Add db and github ci stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
cb1kenobi committed Sep 13, 2024
1 parent b3074cc commit fdaf39c
Show file tree
Hide file tree
Showing 5 changed files with 740 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github: tidev
liberapay: tidev
13 changes: 13 additions & 0 deletions .github/workflows/cla.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Check CLA
on:
- pull_request

jobs:
check-cla:
runs-on: ubuntu-latest
name: Verify contributor

steps:
- uses: tidev/tidev-cla-action@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
52 changes: 52 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: 'Deploy'

on:
push:
branches:
- main
repository_dispatch:
types: [ deploy ]
workflow_dispatch:

concurrency:
group: ${{ github.ref }}
cancel-in-progress: true

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Cloning repo
uses: actions/checkout@v4

- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: tidev/downloads.titaniumsdk.com

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to private registry
uses: docker/login-action@v3
with:
registry: ${{ secrets.TIDEV_REGISTRY_URL }}
username: ${{ secrets.TIDEV_REGISTRY_USERNAME }}
password: ${{ secrets.TIDEV_REGISTRY_PASSWORD }}

- name: Build and push
id: build
uses: docker/build-push-action@v5
with:
push: true
tags: ${{ secrets.TIDEV_REGISTRY_URL }}/${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

- name: Push to dokku
uses: dokku/github-action@master
with:
deploy_docker_image: ${{ secrets.TIDEV_REGISTRY_URL }}/${{ steps.meta.outputs.tags }}@${{ steps.build.outputs.digest }}
git_push_flags: '--force'
git_remote_url: 'ssh://[email protected]:22/next.titaniumsdk.com'
ssh_private_key: ${{ secrets.DO_SSH_PRIVATE_KEY }}
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
"start": "next start"
},
"dependencies": {
"@electric-sql/pglite": "0.2.7",
"drizzle-kit": "0.24.2",
"drizzle-orm": "0.33.0",
"next": "14.2.11",
"react": "18.3.1",
"react-dom": "18.3.1"
Expand Down
Loading

0 comments on commit fdaf39c

Please sign in to comment.