Skip to content

Commit

Permalink
Switch fly deploy to use pre-built images
Browse files Browse the repository at this point in the history
Also switch docker image to preset PORT to 80
  • Loading branch information
kevinastone committed Oct 20, 2024
1 parent 611a483 commit e02e33d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Deploy

on:
workflow_run:
workflows: [Test]
workflows: [Container Image]
types: [completed]
branches: [master]

Expand Down
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@ RUN cargo build --release
ENTRYPOINT ["cargo"]

FROM debian:stable-slim AS release
ENV PORT=80
COPY --from=build /app/target/release/httpbox /usr/local/bin/
ENTRYPOINT ["/usr/local/bin/httpbox"]
4 changes: 3 additions & 1 deletion fly.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ kill_signal = "SIGINT"
kill_timeout = 5
processes = []

[build]
image = "ghcr.io/kevinastone/httpbox:latest"

[env]

[experimental]
Expand All @@ -13,7 +16,6 @@ processes = []

[[services]]
http_checks = []
internal_port = 3000
processes = ["app"]
protocol = "tcp"
script_checks = []
Expand Down

0 comments on commit e02e33d

Please sign in to comment.