Skip to content

Commit

Permalink
Fix the gilab-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Goutham Kannan committed Dec 18, 2023
1 parent c2eb535 commit 04e949a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 19 deletions.
24 changes: 6 additions & 18 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@ variables:
ARTIFACTORY_URL: "https://docker-local.artifactory.internal.mx/"

build-feature:
only:
- branches
when: manual
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
when: never
- if: $CI_COMMIT_MESSAGE =~ /BUILD_FEATURE_BRANCH/i
when: always
- when: manual
before_script:
- docker login -u gitlabci -p "{JWT}${CI_JOB_JWT}" $MX_REGISTRY
script:
Expand All @@ -30,18 +33,3 @@ build:
script:
- docker build -t "$IMG" .
- docker push "$IMG"

build-on-commit:
before_script:
- docker login -u gitlabci -p "{JWT}${CI_JOB_JWT}" $MX_REGISTRY
script:
- docker build -t "$IMG" .
- docker push "$IMG"
only:
variables:
- $CI_COMMIT_MESSAGE =~ /BUILD_FEATURE_BRANCH/i
refs:
- branches
except:
variables:
- $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
2 changes: 1 addition & 1 deletion docbot-crd/src/pod_template.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use std::num::NonZeroUsize;
use std::sync::Arc;
use tokio::sync::broadcast;
use tokio::sync::Mutex;
use tracing::{error, info, warn};
use tracing::{info, warn};

#[derive(Clone)]
pub struct PodTemplateService {
Expand Down

0 comments on commit 04e949a

Please sign in to comment.