Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
0Z090 5UR4l9V
Pod
Commits
8dec5e19
Commit
8dec5e19
authored
3 years ago
by
Muhammad Bilal
Browse files
Options
Download
Email Patches
Plain Diff
Update .gitlab-ci.yml
parent
74eddca6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+4
-0
.gitlab-ci.yml
with
4 additions
and
0 deletions
+4
-0
.gitlab-ci.yml
+
4
-
0
View file @
8dec5e19
...
...
@@ -29,6 +29,8 @@ test:
stage
:
test
tags
:
-
internal-memri
rules
:
-
if
:
'
$CI_PIPELINE_SOURCE
==
"merge_request_event"
||
$CI_COMMIT_BRANCH
==
"dev"'
script
:
-
cargo fmt --all -- --check
-
touch src/main.rs && cargo clippy --all-targets --all-features -- -D warnings
...
...
@@ -49,6 +51,8 @@ publish_docker_images:
-
/kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --build-arg use_kubernetes=true --destination $Docker_Repo/polis/pod-dev:$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA
-
echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
-
/kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --build-arg use_kubernetes=false --destination $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA
only
:
-
dev
pages
:
stage
:
docs
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets