Skip to content

Commit

Permalink
ci: set features in chronicle Dockerfile and build CI
Browse files Browse the repository at this point in the history
  • Loading branch information
penumbra23 committed Jan 14, 2025
1 parent 7bd5ae1 commit 6fd06ad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/merge-docker-chronicle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,10 @@ jobs:
include:
- image: prod
profile: mainnet
features: default
- image: dev
profile: testnet
features: testnet,develop
steps:
- name: Fetch latest code
uses: actions/checkout@v4
Expand All @@ -73,3 +75,4 @@ jobs:
build_args: |
VCS_REF=${{ needs.set-tags.outputs.commit_hash8 }}
PROFILE=${{ matrix.profile }}
FEATURES=${{ matrix.features }}
3 changes: 2 additions & 1 deletion config/docker/Dockerfile.chronicle-release
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM rust:1.79.0 as builder

ARG PROFILE
ARG FEATURES=default

WORKDIR /build

Expand All @@ -9,7 +10,7 @@ RUN mkdir /build/bin

COPY . .

RUN CARGO_HTTP_CHECK_REVOKE=false cargo build --profile $PROFILE --locked -p chronicle
RUN CARGO_HTTP_CHECK_REVOKE=false cargo build --profile $PROFILE --locked -p chronicle --features $FEATURES
RUN mv /build/target/$PROFILE/chronicle /build/bin/chronicle

FROM ubuntu:22.04
Expand Down

0 comments on commit 6fd06ad

Please sign in to comment.