Switch CI to "needs" syntax for job ordering
This commit is contained in:
parent
997a9d2b15
commit
b9973f0b97
@ -1,17 +1,13 @@
|
||||
stages:
|
||||
- build
|
||||
- test
|
||||
|
||||
# Build the project
|
||||
build:
|
||||
stage: build
|
||||
needs: []
|
||||
image: registry.mregirouard.com/libretunes/ops/docker-leptos:slim
|
||||
script:
|
||||
- cargo-leptos build
|
||||
|
||||
# Build the docker image and push it to the registry
|
||||
docker-build:
|
||||
stage: build
|
||||
needs: ["build"]
|
||||
image: docker:latest
|
||||
script:
|
||||
- /usr/local/bin/dockerd-entrypoint.sh &
|
||||
@ -26,7 +22,7 @@ docker-build:
|
||||
|
||||
# Run unit tests
|
||||
test:
|
||||
stage: test
|
||||
needs: ["build"]
|
||||
image: registry.mregirouard.com/libretunes/ops/docker-leptos:slim
|
||||
script:
|
||||
- cargo-leptos test
|
||||
|
Loading…
x
Reference in New Issue
Block a user