Skip to content

Commit

Permalink
test docker builds
Browse files Browse the repository at this point in the history
  • Loading branch information
sm47916 committed Dec 1, 2024
1 parent 6b067c4 commit c1e0e94
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ jobs:
platforms: linux/amd64
builder: ${{ steps.setup-buildx.outputs.name }}
file: docker-builds/ui/Dockerfile
build-args: BUILD_ENV=${{ matrix.env }}
build-args: BUILD_ENV=${{ matrix.env }} ETHLANCE_DEPLOY_SEED=${{ vars.ETHLANCE_DEPLOY_SEED }}
push: true
tags: ${{ secrets.ECR_REGISTRY }}/ethlance-ui:latest-${{ matrix.env }}

Expand All @@ -171,6 +171,6 @@ jobs:
builder: ${{ steps.setup-buildx.outputs.name }}
platforms: linux/amd64
file: docker-builds/server/Dockerfile
build-args: BUILD_ENV=${{ matrix.env }}
build-args: BUILD_ENV=${{ matrix.env }} ETHLANCE_DEPLOY_SEED=${{ vars.ETHLANCE_DEPLOY_SEED }}
push: true
tags: ${{ secrets.ECR_REGISTRY }}/ethlance-server:latest-${{ matrix.env }}
11 changes: 6 additions & 5 deletions docker-builds/server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@ COPY . .

RUN cat "${SMART_CONTRACTS_PATH}"

WORKDIR /build/ethlance-config/
COPY ethlance-config .

# WORKDIR /build/ethlance-config/
# COPY ethlance-config .
WORKDIR /build
COPY ethlance-config/config /build/ethlance/config
# RUN cp /build/ethlance/ethlance-config/config /build/ethlance/
RUN git clone https://github.com/district0x/d0x-libs

FROM init as build_server
Expand Down Expand Up @@ -51,8 +52,8 @@ ENV UI_CONFIG_PATH="/deploy/resources/config/ui-config-${BUILD_ENV}.edn"
ENV SERVER_CONFIG_PATH="/deploy/resources/config/server-config-${BUILD_ENV}.edn"
WORKDIR "${ETHLANCE_SERVER_ROOT}"

COPY --from=build_server /build/ethlance-config/ui-config-${ETHLANCE_ENV}.edn /deploy/resources/config/ui-config-${ETHLANCE_ENV}.edn
COPY --from=build_server /build/ethlance-config/server-config-${ETHLANCE_ENV}.edn /deploy/resources/config/server-config-${ETHLANCE_ENV}.edn
COPY --from=build_server /build/ethlance/config/ui-config-${ETHLANCE_ENV}.edn /deploy/resources/config/ui-config-${ETHLANCE_ENV}.edn
COPY --from=build_server /build/ethlance/config/server-config-${ETHLANCE_ENV}.edn /deploy/resources/config/server-config-${ETHLANCE_ENV}.edn
COPY --from=build_server /build/ethlance/resources /deploy/resources
COPY --from=build_server /build/ethlance/server/node_modules /deploy/server/node_modules/
COPY --from=build_server /build/ethlance/server/package.json /build/ethlance/server/out/ethlance_server* /deploy/server/
Expand Down

0 comments on commit c1e0e94

Please sign in to comment.