Commit be2b4ddf authored by Ben Boeckel's avatar Ben Boeckel
Browse files

gitlab-ci: use a better tag structure

parent da7700f2
...@@ -7,12 +7,6 @@ before_script: ...@@ -7,12 +7,6 @@ before_script:
- rustc --version - rustc --version
- cargo --version - cargo --version
.rust_tags: &rust_tags
- rust
- docker
- ghostflow
- linux
.cargo_update: &cargo_update .cargo_update: &cargo_update
- cargo generate-lockfile $GENERATE_LOCKFILE_ARGS - cargo generate-lockfile $GENERATE_LOCKFILE_ARGS
- cargo fetch --locked - cargo fetch --locked
...@@ -59,7 +53,12 @@ before_script: ...@@ -59,7 +53,12 @@ before_script:
.cargo_fetch_job: &cargo_fetch_job .cargo_fetch_job: &cargo_fetch_job
stage: prepare stage: prepare
tags: *rust_tags tags:
- build
- docker
- ghostflow
- linux
script: *cargo_update script: *cargo_update
artifacts: artifacts:
expire_in: 60m expire_in: 60m
...@@ -75,13 +74,21 @@ before_script: ...@@ -75,13 +74,21 @@ before_script:
.cargo_clippy_job: &cargo_clippy_job .cargo_clippy_job: &cargo_clippy_job
stage: build stage: build
tags: *rust_tags tags:
- build
- docker
- ghostflow
- linux
script: *cargo_clippy script: *cargo_clippy
interruptible: true interruptible: true
.cargo_build_job: &cargo_build_job .cargo_build_job: &cargo_build_job
stage: build stage: build
tags: *rust_tags tags:
- build
- docker
- ghostflow
- linux
script: *cargo_build script: *cargo_build
artifacts: artifacts:
expire_in: 60m expire_in: 60m
...@@ -94,7 +101,11 @@ before_script: ...@@ -94,7 +101,11 @@ before_script:
.cargo_test_job: &cargo_test_job .cargo_test_job: &cargo_test_job
stage: test stage: test
tags: *rust_tags tags:
- build
- docker
- ghostflow
- linux
script: *cargo_test script: *cargo_test
interruptible: true interruptible: true
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment