fix: docker build

This commit is contained in:
kieran 2024-11-13 18:53:39 +00:00
parent e2c96005cf
commit 6f7d8bd58d
No known key found for this signature in database
GPG Key ID: DE71CEB3925BE941
2 changed files with 7 additions and 2 deletions

View File

@ -12,9 +12,13 @@ steps:
environment:
TOKEN:
from_secret: gitea
DOCKER_TOKEN:
from_secret: docker_hub
commands:
- dockerd &
- docker login -u kieran -p $TOKEN git.v0l.io
- docker buildx build --push -t git.v0l.io/kieran/zap-stream-core:latest .
- docker login -u voidic -p $DOCKER_TOKEN
- docker buildx create --name mybuilder --bootstrap --use
- docker buildx build --push -platform linux/amd64,linux/arm64 -t git.v0l.io/kieran/zap-stream-core:latest t voidic/zap-stream-core:latest .
- kill $(cat /var/run/docker.pid)

View File

@ -20,10 +20,11 @@ RUN git clone --depth=1 https://git.ffmpeg.org/ffmpeg.git && \
--disable-network \
--enable-gpl \
--enable-version3 \
--disable-postproc \
--enable-libx264 \
--disable-static \
--enable-shared && \
make -j8 && make install
make -j$(nproc) && make install
RUN cargo install --path . --root /app/build
FROM $IMAGE as runner