Skip to content

Commit 63736da

Browse files
committed
First build
1 parent 1b17bd6 commit 63736da

3 files changed

Lines changed: 10 additions & 4 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
- "*"
99

1010
jobs:
11-
rops-build-amd64:
11+
build-amd64:
1212
name: Build rops binary for amd64
1313
runs-on: ubuntu-22.04
1414
steps:
@@ -25,7 +25,7 @@ jobs:
2525
if-no-files-found: error
2626
path: target/release/rops
2727

28-
rops-build-arm64:
28+
build-arm64:
2929
name: Build rops binary for arm64
3030
runs-on: ubuntu-22.04
3131
steps:
@@ -44,7 +44,7 @@ jobs:
4444
if-no-files-found: error
4545
path: rops/target/aarch64-unknown-linux-gnu/release/rops
4646

47-
rops-release:
47+
release:
4848
name: Release rops binary
4949
needs: [rops-build-amd64, rops-build-arm64]
5050
runs-on: ubuntu-latest

readme.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
# rOps
22

33
Rust operations tool for managing Docker images and Helm charts deployment.
4+
5+
6+
## Configuration
7+
8+
1. Add a new file named `rops.toml` at the root of your project

src/main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ fn main() {
5353

5454
fn run_app() -> error::RopsResult<()> {
5555
// Read configuration file
56-
let settings = settings::Settings::load("devops.config.toml");
56+
let config_name = std::env::var("ROPS_CONFIG").unwrap_or_else(|_| "rops.toml".to_string());
57+
let settings = settings::Settings::load(&config_name);
5758

5859
let app = CliArgs::parse();
5960
match app {

0 commit comments

Comments
 (0)