Skip to content

Commit

Permalink
chore: support build args for dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
vicanso committed Feb 14, 2025
1 parent 0611610 commit 6b8b363
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,8 @@ jobs:
platforms: linux/amd64, linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
build-args: |
BUILD_ARGS="--features=full"
- name: Image digest
run: |
echo ${{ steps.docker_build.outputs.digest }}
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,16 @@ RUN apk update \

FROM rust:1.83.0 AS builder

ARG BUILD_ARGS=""

COPY --from=webbuilder /pingap /pingap

RUN apt update \
&& apt install -y cmake libclang-dev wget gnupg ca-certificates lsb-release protobuf-compiler --no-install-recommends
RUN rustup target list --installed
RUN cd /pingap \
&& make release-full
&& cargo build --release ${BUILD_ARGS} \
&& ls -lh target/release

FROM ubuntu:24.04

Expand Down

0 comments on commit 6b8b363

Please sign in to comment.