Skip to content
Snippets Groups Projects
Commit d4a7d7cc authored by Eduardo Trujillo's avatar Eduardo Trujillo
Browse files

Gitlab CI: Additional stages

parent 6b42363e
No related branches found
No related tags found
1 merge request!1Rust Rewrite
stages:
- lint
- format
- build
- lint
- test
- image
.rust_template: &rust_template
cache:
......@@ -30,28 +32,24 @@ rust-nightly-test:
- cargo test --verbose
rust-nightly-fmt:
stage: lint
stage: format
image: rustlang/rust:nightly
<<: *rust_template
script:
- cargo fmt --all --verbose -- --check
rust-nightly-clippy:
stage: build
stage: lint
image: rustlang/rust:nightly
needs:
- rust-nightly
<<: *rust_template
script:
- cargo clippy --all --verbose -- -D warnings
rust-nightly-docker:
stage: build
stage: image
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
needs:
- rust-nightly
script:
- mkdir -p /kaniko/.docker
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment