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
Vasili Novikov
Pod
Commits
d5d633d1
Commit
d5d633d1
authored
3 years ago
by
Muhammad Bilal
Browse files
Options
Download
Email Patches
Plain Diff
caching test
parent
717dccd6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+2
-6
.gitlab-ci.yml
src/plugin_run.rs
+4
-1
src/plugin_run.rs
with
6 additions
and
7 deletions
+6
-7
.gitlab-ci.yml
+
2
-
6
View file @
d5d633d1
...
...
@@ -9,7 +9,6 @@ variables:
before_script
:
-
apt-get update -o dir::cache::archives="$APT_CACHE_DIR" -yq
-
apt-get install -o dir::cache::archives="$APT_CACHE_DIR" -y libsqlcipher-dev
#- apt-get install -y docker.io
-
cargo install cargo-audit
-
rustup component add rustfmt
-
rustup component add clippy
...
...
@@ -31,7 +30,6 @@ test:
stage
:
test
tags
:
-
internal-memri
# image: ekidd/rust-musl-builder
script
:
-
cargo fmt --all -- --check
-
touch src/main.rs && cargo clippy --all-targets --all-features -- -D warnings
...
...
@@ -42,8 +40,7 @@ test:
build_push_DO
:
stage
:
build_push_DO
image
:
# We recommend using the CERN version of the Kaniko image: gitlab-registry.cern.ch/ci-tools/docker-image-builder
image
:
name
:
gcr.io/kaniko-project/executor:debug
entrypoint
:
[
"
"
]
before_script
:
...
...
@@ -54,8 +51,7 @@ build_push_DO:
build_push_Gitlab
:
stage
:
build_push_Gitlab
image
:
# We recommend using the CERN version of the Kaniko image: gitlab-registry.cern.ch/ci-tools/docker-image-builder
image
:
name
:
gcr.io/kaniko-project/executor:debug
entrypoint
:
[
"
"
]
before_script
:
...
...
This diff is collapsed.
Click to expand it.
src/plugin_run.rs
+
4
-
1
View file @
d5d633d1
...
...
@@ -208,7 +208,10 @@ fn run_kubernetes_container(
args
.push
(
format!
(
"--env=POD_PLUGINRUN_ID={}"
,
triggered_by_item_id
));
args
.push
(
format!
(
"--env=POD_OWNER={}"
,
pod_owner
));
args
.push
(
format!
(
"--env=POD_AUTH_JSON={}"
,
pod_auth
));
args
.push
(
format!
(
"--env=PLUGIN_DNS=http://{}.dev.pod.memri.io"
,
s
.clone
()));
args
.push
(
format!
(
"--env=PLUGIN_DNS=http://{}.dev.pod.memri.io"
,
s
.clone
()
));
let
envs
:
HashMap
<&
str
,
&
str
>
=
HashMap
::
new
();
run_any_command
(
"kubectl"
,
&
args
,
&
envs
,
triggered_by_item_id
)
}
...
...
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