Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker hub #18

Merged
merged 2 commits into from
Dec 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
java-version: 17
cache: sbt

- run: sbt test
- run: sbt "test; backend / Docker / publishLocal"

- name: Compress target directories
run: tar cf targets.tar target project/target
Expand Down
11 changes: 9 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,15 @@ lazy val backend = (project in file("modules/backend"))
toCopy.map(_._2)
},
Docker / dockerExposedPorts := List(9000),
Docker / packageName := "morning-bird-7081",
Docker / dockerRepository := Some("registry.fly.io"),
Docker / packageName := "smithy4s-code-generation",
Docker / dockerRepository := Some("daddykotex"),
dockerAliases ++= Seq(
dockerAlias.value.withTag(sys.env.get("GITHUB_SHA")),
dockerAlias.value.withRegistryHost(Option("registry.fly.io")),
dockerAlias.value
.withTag(sys.env.get("GITHUB_SHA"))
.withRegistryHost(Option("registry.fly.io"))
),
Docker / version := "latest",
dockerBaseImage := "eclipse-temurin:17.0.6_10-jre"
)
2 changes: 1 addition & 1 deletion fly.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ primary_region = "yul"
kill_signal = "SIGINT"
kill_timeout = 5
[build]
image = "registry.fly.io/morning-bird-7081:latest"
image = "registry.fly.io/smithy4s-code-generation:latest"

[env]
JAVA_OPTS = "-Xms384m -Xmx384m"
Expand Down