ci: docker depends on test, put LABEL at bottom of dockerfile

This commit is contained in:
Philippe Loctaux 2023-03-19 23:55:52 +01:00
parent 971d2f46f4
commit 4a7723a9a8
3 changed files with 7 additions and 4 deletions

View file

@ -1,5 +1,5 @@
pipeline:
latest-master:
docker-latest:
when:
branch: master
event: push
@ -11,3 +11,6 @@ pipeline:
from_secret: DOCKER_PASSWORD
repo: gitea.y.z.x4m3.rocks/${CI_REPO_OWNER}/ezidam
tag: latest
depends_on:
- test

View file

@ -2,7 +2,7 @@ variables:
- &rust_image 'rust:latest'
pipeline:
build:
test:
image: *rust_image
commands:
# setup

View file

@ -1,5 +1,3 @@
LABEL maintainer="Philippe Loctaux <p@philippeloctaux.com>"
FROM clux/muslrust:stable as chef
USER root
RUN cargo install cargo-chef
@ -28,3 +26,5 @@ ENV ROCKET_PORT=8000
ENV ROCKET_DATABASES='{ezidam={url="/database/ezidam.sqlite"}}'
EXPOSE 8000
ENTRYPOINT ["/ezidam"]
LABEL maintainer="Philippe Loctaux <p@philippeloctaux.com>"