Skip to content

Commit

Permalink
adjust machine size and fix quotation in Dockfile
Browse files Browse the repository at this point in the history
  • Loading branch information
gpmayorga committed Sep 16, 2023
1 parent c9264d8 commit e23b574
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
strategy:
matrix:
target: [ release, test ]
runs-on: ubuntu-latest-4-cores
runs-on: ubuntu-latest-8-cores
env:
WORKFLOW_TAG: ${{ github.event.inputs.docker_tag }}
steps:
Expand Down Expand Up @@ -79,7 +79,7 @@ jobs:
context: .
file: ./docker/centrifuge-chain/Dockerfile
build-args: |
FEATURES=${{ matrix.target == 'test' && 'fast-runtime' || '' }}
FEATURES=${{ matrix.target == 'test' && join(['fast', 'runtime'], '-') || '' }}
# SCCACHE_GHA_ENABLED="true"
# RUSTC_WRAPPER=sccache
push: ${{ github.ref == '/refs/heads/main' && true || false }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
# Benchmark (with cache hit)
# ubuntu-latest 50 min
# ubuntu-latest-4-cores 34 min
runs-on: ubuntu-latest-8-cores
runs-on: ubuntu-latest-4-cores
strategy:
matrix:
# To test until I get one right
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
permissions:
contents: write
id-token: write
runs-on: ubuntu-latest-8-cores
runs-on: ubuntu-latest-4-cores
env:
RUST_TOOLCHAIN: "1.66.0"
RUSTDOCFLAGS: "-D warnings"
Expand Down
5 changes: 3 additions & 2 deletions docker/centrifuge-chain/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ FROM --platform=linux/amd64 docker.io/library/ubuntu:22.04 as builder

COPY . centrifuge-chain
WORKDIR /centrifuge-chain
RUN cargo build "--release" --features=${FEATURES}
RUN FEATURES=$(echo ${FEATURES} | tr -d '"') \
cargo build "--release" --features=${FEATURES}


# ===== SECOND STAGE ======
Expand All @@ -52,7 +53,7 @@ FROM --platform=linux/amd64 docker.io/library/ubuntu:22.04
io.centrifuge.image.vendor="Centrifuge" \
io.centrifuge.image.title="centrifugeio/centrifuge-chain" \
io.centrifuge.image.description="Centrifuge, the layer 1 of RWA. This is the official Centrifuge image with an injected binary." \
io.centrifuge.image.source="https://github.com/centrifuge/centrifuge-chain/blob/main/Dockerfile" \
io.centrifuge.image.source="https://github.com/centrifuge/centrifuge-chain/blob/main/docker/centrifuge-chain/Dockerfile" \
# io.centrifuge.image.revision="${VCS_REF}" \
io.centrifuge.image.created="${BUILD_DATE}"

Expand Down

0 comments on commit e23b574

Please sign in to comment.