Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
keynmol committed Jun 4, 2024
1 parent c20758b commit 7f1ada2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 31 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

# This step generates an artifact attestation for the image, which is an unforgeable statement about where and how it was built. It increases supply chain security for people who consume the image. For more information, see "[AUTOTITLE](/actions/security-guides/using-artifact-attestations-to-establish-provenance-for-builds)."
- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
Expand All @@ -62,3 +62,7 @@ jobs:
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true

- uses: superfly/flyctl-actions/setup-flyctl@master

- name: Deploy to Fly.io
run: fly deploy --dockerfile Dockerfile.deploy --local-only
1 change: 1 addition & 0 deletions Dockerfile.deploy
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
FROM ghcr.io/indoorvivants/sn-bindgen-web:main
30 changes: 0 additions & 30 deletions modules/queue-processor/src/main/scala/Store.scala
Original file line number Diff line number Diff line change
Expand Up @@ -351,36 +351,6 @@ object Store:
.flatMap(
open(_, SkunkConfig)
)
// Session.pooled()
// Database
// .open[IO](filename)
// .evalTap { db =>
// val migrations = List(
// sql"""
// |create table if not exists bindings(
// | id text primary key not null,
// | state text not null,
// | state_date int not null,
// | header_code blob not null,
// | package_name text not null
// |);""".stripMargin,
// sql"""
// |create table if not exists generated_code(
// | binding_id text primary key not null,
// | scala_code blob not null,
// | glue_code blob
// |);""".stripMargin,
// sql"""
// |create table if not exists leases(
// | binding_id text not null,
// | worker_id text not null,
// | checked_in_at int not null
// |);
// """.stripMargin
// )
// migrations.map(_.command).traverse(db.execute(_))
// }
// .map(StoreImpl(_))
end open

def migrate(postgres: PgCredentials)(using Tracer[IO]) =
Expand Down

0 comments on commit 7f1ada2

Please sign in to comment.