Skip to content

Commit 1d7207c

Browse files
committed
Added CD
1 parent 897c047 commit 1d7207c

4 files changed

Lines changed: 24 additions & 3 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Deploy to Railway
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
16+
- name: Deploy to Railway
17+
uses: railwayapp/railway-action@v2
18+
with:
19+
railwayToken: ${{ secrets.RAILWAY_TOKEN }}
20+
serviceId: ${{ secrets.RAILWAY_SERVICE_ID }}
21+
projectId: ${{ secrets.RAILWAY_PROJECT_ID }}

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

diamonds_imager/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "diamonds_imager"
3-
version = "0.1.0"
3+
version = "0.1.1"
44
edition = "2021"
55

66
[dependencies]

diamonds_imager/src/app.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ pub async fn app_serve(settings: Settings) -> Result<AppServeHandler, AppServeEr
9999
let listener = tokio::net::TcpListener::bind(format!("{}:{}", settings.address, settings.port)).await?;
100100
let address = listener.local_addr()?;
101101

102-
tracing::info!("listening on {}", address);
102+
tracing::info!("{}({}) listening on {}", env!("CARGO_PKG_NAME"), env!("CARGO_PKG_VERSION"), address);
103103

104104
let (shutdown_tx, shutdown_rx) = tokio::sync::oneshot::channel();
105105

0 commit comments

Comments
 (0)