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: pipeline:
latest-master: docker-latest:
when: when:
branch: master branch: master
event: push event: push
@ -11,3 +11,6 @@ pipeline:
from_secret: DOCKER_PASSWORD from_secret: DOCKER_PASSWORD
repo: gitea.y.z.x4m3.rocks/${CI_REPO_OWNER}/ezidam repo: gitea.y.z.x4m3.rocks/${CI_REPO_OWNER}/ezidam
tag: latest tag: latest
depends_on:
- test

View file

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

View file

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