Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switching forkless workflows to use two branches #1099

Merged
merged 2 commits into from
Nov 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 0 additions & 47 deletions .docker/Dockerfile-acala.j2

This file was deleted.

46 changes: 0 additions & 46 deletions .docker/Dockerfile-astar.j2

This file was deleted.

46 changes: 0 additions & 46 deletions .docker/Dockerfile-cumulus.j2

This file was deleted.

50 changes: 0 additions & 50 deletions .docker/Dockerfile-hydradx

This file was deleted.

47 changes: 0 additions & 47 deletions .docker/Dockerfile-hydradx.j2

This file was deleted.

47 changes: 0 additions & 47 deletions .docker/Dockerfile-moonbeam.j2

This file was deleted.

47 changes: 0 additions & 47 deletions .docker/Dockerfile-polkadex.j2

This file was deleted.

4 changes: 2 additions & 2 deletions .docker/Dockerfile-unique
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ===== BUILD UNIQUE =====
FROM uniquenetwork/services:base-stable-1.77.0 AS builder
# ===== BUILD POLKADOT =====
FROM "uniquenetwork/services:base-nightly-1.67.0" as builder

WORKDIR /workdir

Expand Down
20 changes: 12 additions & 8 deletions .docker/Dockerfile-unique-release
Original file line number Diff line number Diff line change
@@ -1,22 +1,26 @@
# ===== BUILD POLKADOT =====
FROM uniquenetwork/services:base-stable-1.77.0 as builder
FROM "uniquenetwork/services:base-nightly-1.67.0" as builder

WORKDIR /workdir

ARG UNIQUE_VERSION
RUN git clone -b "$UNIQUE_VERSION" --depth 1 https://github.com/uniquenetwork/unique-chain.git

ARG UNIQUE_HASH
ARG FEATURES
RUN --mount=type=cache,target=/cargo-home/registry \

RUN git clone -b "$UNIQUE_VERSION" --depth 1 https://github.com/uniquenetwork/unique-chain.git && \
cd unique-chain && git checkout "$UNIQUE_HASH" && \
--mount=type=cache,target=/cargo-home/registry \
--mount=type=cache,target=/cargo-home/git \
--mount=type=cache,target=/workdir/unique-chain/target \
cd unique-chain && \
CARGO_INCREMENTAL=0 cargo build --release --features="${FEATURES}" --locked && \
mv ./target/release/unique-collator /workdir/unique-chain/
mv ./target/release/unique-collator /workdir/unique-chain/ && \
cd target/release/wbuild && find . -name "*.wasm" -exec sh -c 'mkdir -p "../../../wasm/$(dirname {})"; cp {} "../../../wasm/{}"' \;

# ===== BIN ======

FROM ubuntu:24.04
FROM ubuntu:24.04
LABEL maintainer="Unique.Network"

COPY --from=builder /workdir/unique-chain/unique-collator /bin/unique-collator
ENTRYPOINT ["/bin/unique-collator"]
COPY --from=builder /workdir/unique-chain/wasm /wasm
ENTRYPOINT ["/bin/unique-collator"]
Loading
Loading