Skip to content
Snippets Groups Projects
Commit 561e1ab5 authored by Dorian Koch's avatar Dorian Koch
Browse files

Compile in release mode, change image name

parent 66fba186
No related branches found
No related tags found
No related merge requests found
Pipeline #5750 passed
...@@ -5,5 +5,5 @@ build: ...@@ -5,5 +5,5 @@ build:
entrypoint: [""] entrypoint: [""]
script: script:
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json - echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE/bullseye:$CI_COMMIT_TAG - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE/render_video:$CI_COMMIT_TAG
...@@ -13,7 +13,7 @@ RUN git clone https://msrd0.dev/msrd0/render_video.git /app ...@@ -13,7 +13,7 @@ RUN git clone https://msrd0.dev/msrd0/render_video.git /app
COPY docker_patch.diff /app/docker_patch.diff COPY docker_patch.diff /app/docker_patch.diff
RUN git apply --ignore-space-change --ignore-whitespace docker_patch.diff RUN git apply --ignore-space-change --ignore-whitespace docker_patch.diff
RUN cargo build --target-dir /binaries RUN cargo build --target-dir /binaries
ENV PATH="/binaries/target/release:${PATH}" RUN cargo build --release --target-dir /binaries
ENV RUST_BACKTRACE=full ENV RUST_BACKTRACE=full
ENTRYPOINT [ "/binaries/debug/render_video", "-t", "720p", "-T", "1440p" ] ENTRYPOINT [ "/binaries/release/render_video", "-t", "720p", "-T", "1440p" ]
\ No newline at end of file \ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment