From f99a95227eb318a37fda4a3b23084729ba8a46a1 Mon Sep 17 00:00:00 2001 From: Jiayi Yin Date: Thu, 14 Sep 2023 00:19:44 +0800 Subject: [PATCH 1/2] feat(arch): support riscv64 --- Dockerfile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5b34c19..e1d24ee 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,15 +12,18 @@ # See the License for the specific language governing permissions and # limitations under the License. -FROM golang:1.19-bookworm as builder +FROM debian:experimental as builder WORKDIR /work/ +RUN apt update; apt install golang-1.19 make curl wget -y + COPY . . +ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/go-1.19/bin RUN make -f Makefile -FROM debian:12 +FROM debian:experimental ENV LANG C.UTF-8 ENV TZ=Asia/Shanghai \ @@ -42,4 +45,4 @@ COPY --from=builder /work/build/eulixspace-upgrade /usr/local/bin/eulixspace-upg EXPOSE 5681 -CMD ["/usr/local/bin/eulixspace-upgrade"] \ No newline at end of file +CMD ["/usr/local/bin/eulixspace-upgrade"] From 970d0a597b7d7205dee8afd581ba591eca2bcfbf Mon Sep 17 00:00:00 2001 From: Jiayi Yin Date: Thu, 14 Sep 2023 00:22:18 +0800 Subject: [PATCH 2/2] feat(arch): support riscv64 --- .github/workflows/container.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/container.yml b/.github/workflows/container.yml index 6cea02b..a99e1d0 100644 --- a/.github/workflows/container.yml +++ b/.github/workflows/container.yml @@ -168,8 +168,8 @@ jobs: tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} builder: ${{ steps.buildx.outputs.name }} - platforms: linux/amd64,linux/arm64 + platforms: linux/amd64,linux/arm64,linux/riscv64 cache-from: type=gha cache-to: type=gha,mode=max file: Dockerfile - provenance: false \ No newline at end of file + provenance: false