Skip to content

Commit

Permalink
Move docker build first and remove the DOCKER_HOST variable
Browse files Browse the repository at this point in the history
  • Loading branch information
1Git2Clone committed Dec 29, 2024
1 parent 23b2be9 commit fb51eef
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
stages:
- docker_build
- build_rust
- build_release_rust
- test_rust
- docker_build

variables:
# Rust CI
CARGO_TERM_COLOR: always
RUST_BACKTRACE: full
# Docker CI
DOCKER_HOST: tcp://docker:2375

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

build:
stage: build_rust
Expand All @@ -28,9 +32,3 @@ run-tests:
image: rust:latest
script:
- cargo test --verbose --all-features -- --nocapture

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

0 comments on commit fb51eef

Please sign in to comment.