Skip to content

Commit

Permalink
feat: store data locally
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesponti committed Aug 6, 2024
1 parent fd75d43 commit 39777bb
Show file tree
Hide file tree
Showing 26 changed files with 1,300 additions and 628 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build and Publish Docker Image

on:
push:
branches:
- main # Change this to your default branch if different

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Log in to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build Docker image
run: |
docker build -t ghcr.io/${{ github.repository }}/my-image:latest .
# Replace 'my-image' with your desired image name
- name: Push Docker image
run: |
docker push ghcr.io/${{ github.repository }}/my-image:latest
# Replace 'my-image' with your desired image name
25 changes: 25 additions & 0 deletions alembic/versions/001_setup_postgres.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
"""Create uuid-ossp extension
Revision ID: 001_create_uuid_ossp
Revises:
Create Date: 2024-07-30 15:00:00.000000
"""

import sqlalchemy as sa

from alembic import op

# revision identifiers, used by Alembic.
revision = "001_create_uuid_ossp"
down_revision = None
branch_labels = None
depends_on = None


def upgrade():
op.execute('CREATE EXTENSION IF NOT EXISTS "uuid-ossp"')


def downgrade():
op.execute('DROP EXTENSION IF EXISTS "uuid-ossp"')
118 changes: 0 additions & 118 deletions alembic/versions/4f4580079301_initial_migration.py

This file was deleted.

43 changes: 0 additions & 43 deletions alembic/versions/6674e2e67df2_align_models_with_gql_schema.py

This file was deleted.

Loading

0 comments on commit 39777bb

Please sign in to comment.