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 the project
|
||||||
build:
|
build:
|
||||||
stage: build
|
needs: []
|
||||||
image: registry.mregirouard.com/libretunes/ops/docker-leptos:slim
|
image: registry.mregirouard.com/libretunes/ops/docker-leptos:slim
|
||||||
script:
|
script:
|
||||||
- cargo-leptos build
|
- cargo-leptos build
|
||||||
|
|
||||||
# Build the docker image and push it to the registry
|
# Build the docker image and push it to the registry
|
||||||
docker-build:
|
docker-build:
|
||||||
stage: build
|
needs: ["build"]
|
||||||
image: docker:latest
|
image: docker:latest
|
||||||
script:
|
script:
|
||||||
- /usr/local/bin/dockerd-entrypoint.sh &
|
- /usr/local/bin/dockerd-entrypoint.sh &
|
||||||
@ -26,7 +22,7 @@ docker-build:
|
|||||||
|
|
||||||
# Run unit tests
|
# Run unit tests
|
||||||
test:
|
test:
|
||||||
stage: test
|
needs: ["build"]
|
||||||
image: registry.mregirouard.com/libretunes/ops/docker-leptos:slim
|
image: registry.mregirouard.com/libretunes/ops/docker-leptos:slim
|
||||||
script:
|
script:
|
||||||
- cargo-leptos test
|
- cargo-leptos test
|
||||||
|
Loading…
x
Reference in New Issue
Block a user