feat: build with labels for docker

This commit is contained in:
Kieran 2024-09-29 12:58:17 +01:00
parent c47432e58f
commit d7b332905b
No known key found for this signature in database
GPG Key ID: DE71CEB3925BE941
2 changed files with 3 additions and 2 deletions

View File

@ -18,5 +18,5 @@ steps:
- dockerd & - dockerd &
- docker login -u kieran -p $TOKEN git.v0l.io - docker login -u kieran -p $TOKEN git.v0l.io
- docker login -u voidic -p $TOKEN_DOCKER - docker login -u voidic -p $TOKEN_DOCKER
- docker buildx build --push -t git.v0l.io/kieran/route96:latest -t voidic/route96:latest . - docker buildx build --push -t git.v0l.io/kieran/route96:latest -t voidic/route96:latest --build-arg FEATURES="labels" .
- kill $(cat /var/run/docker.pid) - kill $(cat /var/run/docker.pid)

View File

@ -1,4 +1,5 @@
ARG IMAGE=rust:bookworm ARG IMAGE=rust:bookworm
ARG FEATURES=labels
FROM $IMAGE as build FROM $IMAGE as build
WORKDIR /app/src WORKDIR /app/src
@ -31,7 +32,7 @@ RUN git clone --depth=1 https://git.v0l.io/Kieran/FFmpeg.git && \
--disable-static \ --disable-static \
--enable-shared && \ --enable-shared && \
make -j8 && make install make -j8 && make install
RUN cargo install --path . --root /app/build RUN cargo install --path . --root /app/build --features "${FEATURES}"
FROM node:bookworm as ui_builder FROM node:bookworm as ui_builder
WORKDIR /app/src WORKDIR /app/src