Skip to content

Commit

Permalink
Fix docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
dyegomb committed Jan 5, 2024
2 parents 8376161 + dfcf1f1 commit d0ca077
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ env_logger = "0.10"
configloader = { path = "./configloader"}
mailsender = { path = "./mailsender" }
gitlabapi = { path = "./gitlabapi" }
openssl = { version = "0.10", features = ["vendored"] }

[dev-dependencies]
env_logger = "0.10"
Expand Down
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ WORKDIR /opt

COPY Cargo.toml /opt/
COPY src /opt/src
COPY configloader /opt/configloader
COPY gitlabapi /opt/gitlabapi
COPY mailsender /opt/mailsender

RUN cargo build --target x86_64-unknown-linux-musl --release

Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ mod tests;
mod utils;

#[derive(Debug)]
enum MailReason {
pub enum MailReason {
Duplicated,
InvalidTag,
ErrorToCancel,
Expand Down
2 changes: 2 additions & 0 deletions src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ mod integration_tests {
async fn create_pipeline() {
// TESTE_TOKENTRIG="token" cargo test --package gitlabjob --bin gitlabjob -- tests::integration_tests::create_pipeline \
// --exact --nocapture --ignored

// curl -X POST --fail -F "token=$totken" -F "ref=master" -F "variables[PROD_TAG]=PROD-1.1" https://gitlab.com/api/v4/projects/***PROJID***/trigger/pipeline
use std::env;

let token_trigger = match env::var("TESTE_TOKENTRIG") {
Expand Down

0 comments on commit d0ca077

Please sign in to comment.