Switch CI to "needs" syntax for job ordering

This commit is contained in:
Ethan Girouard 2024-01-01 16:23:21 -05:00
parent 997a9d2b15
commit b9973f0b97
Signed by: eta357
GPG Key ID: 7BCDC36DFD11C146

View File

@ -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