Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Gitlab Project Doctor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
Numérique et Écologie
Gitlab Project Doctor
Commits
f75ef2e1
Verified
Commit
f75ef2e1
authored
1 year ago
by
Geoffrey Arthaud
Browse files
Options
Downloads
Patches
Plain Diff
Rust image check and rebuild manually activated
parent
19dd54c7
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+7
-3
7 additions, 3 deletions
.gitlab-ci.yml
with
7 additions
and
3 deletions
.gitlab-ci.yml
+
7
−
3
View file @
f75ef2e1
...
...
@@ -6,6 +6,7 @@ workflow:
variables
:
RUST_VERSION
:
"
1.79"
# slim or alpine not adapted because of openSSL dependency
RUST_IMAGE
:
"
registry.gitlab-forge.din.developpement-durable.gouv.fr/pub/numeco/gitlab-project-doctor/rust-tools"
TARGET_ARCH
:
default
CARGO_HOME
:
.cargo
TEST_OPTIONS
:
--url $CI_PROJECT_URL -a
...
...
@@ -55,6 +56,8 @@ include:
build-rust-image
:
cache
:
[
]
rules
:
-
if
:
$RUST_REBUILD_IMAGE
release-gpd-image
:
needs
:
...
...
@@ -66,7 +69,7 @@ release-gpd-image:
check-format
:
stage
:
deps_and_lint
image
:
${R
EGISTRY_IMAGE_RUST
}
image
:
${R
UST_IMAGE}:${RUST_VERSION
}
script
:
-
cargo fetch
-
cargo fmt --all -- --check
...
...
@@ -79,7 +82,7 @@ check-format:
test-rust-current
:
stage
:
build_test
image
:
${R
EGISTRY_IMAGE_RUST
}
image
:
${R
UST_IMAGE}:${RUST_VERSION
}
script
:
-
cargo test --verbose
-
cargo run -- $TEST_OPTIONS
...
...
@@ -93,7 +96,7 @@ test-rust-nightly:
allow_failure
:
true
.rust-release
:
image
:
${R
EGISTRY_IMAGE_RUST
}
image
:
${R
UST_IMAGE}:${RUST_VERSION
}
stage
:
release
variables
:
APP_NAME
:
gitlab-project-doctor
...
...
@@ -169,6 +172,7 @@ test-release-docker:
-
gitlab-project-doctor $CLEAN_OPTIONS --token $TEST_GL_TOKEN
cache
:
[
]
needs
:
-
release-linux
-
release-gpd-image
rules
:
-
if
:
$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment