Skip to content

Commit

Permalink
Change the stages and set docker to docker:latest
Browse files Browse the repository at this point in the history
  • Loading branch information
1Git2Clone committed Dec 29, 2024
1 parent fb51eef commit 5fad3cf
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,30 @@
stages:
- docker_build
- build_rust
- run_tests_rust
- build_release_rust
- test_rust

variables:
# Rust CI
CARGO_TERM_COLOR: always
RUST_BACKTRACE: full

docker-build:
stage: docker_build
image: docker
docker_build:
image: docker:latest
script:
- docker build . --file Dockerfile --tag my-image-name:$(date +%s)

build:
stage: build_rust
build_rust:
image: rust:latest
script:
- cargo build --verbose --all-features

build-release:
stage: build_release_rust
build_release_rust:
image: rust:latest
script:
- cargo build --verbose --all-features --release

run-tests:
stage: test_rust
run_tests_rust:
image: rust:latest
script:
- cargo test --verbose --all-features -- --nocapture

0 comments on commit 5fad3cf

Please sign in to comment.