From fb51eefe99e1e0f76bc926301eec25bd72558a98 Mon Sep 17 00:00:00 2001 From: 1Kill2Steal <171241044+1Git2Clone@users.noreply.github.com> Date: Sun, 29 Dec 2024 23:55:42 +0200 Subject: [PATCH] Move docker build first and remove the `DOCKER_HOST` variable --- .gitlab-ci.yml | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 994bb69..81844fc 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 @@ -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)