ci: docker depends on test, put LABEL at bottom of dockerfile
This commit is contained in:
parent
971d2f46f4
commit
4a7723a9a8
3 changed files with 7 additions and 4 deletions
|
|
@ -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
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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>"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue