Skip to content

Commit

Permalink
fix build feature
Browse files Browse the repository at this point in the history
  • Loading branch information
Ad96el committed Jan 10, 2024
1 parent e01e643 commit e0ff13d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dev-ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
mask-password: "true"
- name: Build image
run: |
docker build --build-arg BACKEND_URL=$BACKEND_URL --build-arg AUTH_URL=$AUTH_URL -t dena-attester:latest .
docker build --build-arg BACKEND_URL=$BACKEND_URL --build-arg AUTH_URL=$AUTH_URL --build-arg BUILD_FEATURE="" -t dena-attester:latest .
- name: Tag, and push image to Amazon ECR
env:
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ RUN yarn build
# Backend Build Stage
FROM rust:buster as backend-build

ARG ARGS=--features=spiritnet
ARG BUILD_FEATURE=--features=spiritnet

RUN apt-get update && \
apt-get -y upgrade && \
Expand All @@ -36,7 +36,7 @@ COPY . /app/


# Build backend
RUN cargo build --release --bin=attester-backend --package=attester-backend $ARGS
RUN cargo build --release --bin=attester-backend --package=attester-backend $BUILD_FEATURE

# Final Stage
FROM rust:slim-buster
Expand Down

0 comments on commit e0ff13d

Please sign in to comment.