From ef18b66dd1c137de3bdde8b2933a50b828b007cb Mon Sep 17 00:00:00 2001 From: iosh <454053152@qq.com> Date: Wed, 3 Jul 2024 16:14:37 +0800 Subject: [PATCH] chore: update dockerfile --- Dockerfile.buildx | 2 +- Dockerfile.dev.buildx | 2 +- Makefile | 12 ++++++------ 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Dockerfile.buildx b/Dockerfile.buildx index 5ce5191..6e975ad 100644 --- a/Dockerfile.buildx +++ b/Dockerfile.buildx @@ -12,7 +12,7 @@ RUN apt-get update && apt-get install -y \ WORKDIR /work -RUN git clone -b v${VERSION} --single-branch --depth 1 https://github.com/Conflux-Chain/conflux-rust.git conflux +RUN git clone -b ${VERSION} --single-branch --depth 1 https://github.com/Conflux-Chain/conflux-rust.git conflux WORKDIR /work/conflux diff --git a/Dockerfile.dev.buildx b/Dockerfile.dev.buildx index 9481466..3692fd9 100644 --- a/Dockerfile.dev.buildx +++ b/Dockerfile.dev.buildx @@ -12,7 +12,7 @@ RUN apt-get update && apt-get install -y \ WORKDIR /work -RUN git clone -b v${VERSION} --single-branch --depth 1 https://github.com/Conflux-Chain/conflux-rust.git conflux +RUN git clone -b ${VERSION} --single-branch --depth 1 https://github.com/Conflux-Chain/conflux-rust.git conflux WORKDIR /work/conflux diff --git a/Makefile b/Makefile index 88f05e9..13ef1f2 100644 --- a/Makefile +++ b/Makefile @@ -38,20 +38,20 @@ download-binary: cp conflux-binary/run/conflux cfxrun/conflux buildx: - docker buildx build -f Dockerfile.buildx --platform=linux/arm64,linux/amd64 --build-arg="VERSION=${TAG}" -t confluxchain/conflux-rust:${TAG} . + docker buildx build -f Dockerfile.buildx --platform=linux/arm64,linux/amd64 --build-arg="VERSION=v${TAG}" -t confluxchain/conflux-rust:${TAG} . buildx-load: - docker buildx build -f Dockerfile.buildx --load --build-arg="VERSION=${TAG}" -t confluxchain/conflux-rust:${TAG} . + docker buildx build -f Dockerfile.buildx --load --build-arg="VERSION=v${TAG}" -t confluxchain/conflux-rust:v${TAG} . buildx-push: - docker buildx build -f Dockerfile.buildx --push --platform=linux/arm64,linux/amd64 --build-arg="VERSION=${TAG}" -t confluxchain/conflux-rust:${TAG} . + docker buildx build -f Dockerfile.buildx --push --platform=linux/arm64,linux/amd64 --build-arg="VERSION=v${TAG}" -t confluxchain/conflux-rust:${TAG} . buildx-dev: - docker buildx build -f Dockerfile.dev.buildx --platform=linux/arm64,linux/amd64 --build-arg="VERSION=${TAG}" -t confluxchain/conflux-rust:${TAG} . + docker buildx build -f Dockerfile.dev.buildx --platform=linux/arm64,linux/amd64 --build-arg="VERSION=v${TAG}" -t confluxchain/conflux-rust:${TAG} . buildx-dev-load: - docker buildx build -f Dockerfile.dev.buildx --load --build-arg="VERSION=${TAG}" -t confluxchain/conflux-rust:${TAG} . + docker buildx build -f Dockerfile.dev.buildx --load --build-arg="VERSION=v${TAG}" -t confluxchain/conflux-rust:${TAG} . buildx-dev-push: - docker buildx build -f Dockerfile.dev.buildx --push --platform=linux/arm64,linux/amd64 --build-arg="VERSION=${TAG}" -t confluxchain/conflux-rust:${TAG} . \ No newline at end of file + docker buildx build -f Dockerfile.dev.buildx --push --platform=linux/arm64,linux/amd64 --build-arg="VERSION=v${TAG}" -t confluxchain/conflux-rust:${TAG} . \ No newline at end of file