From 11a01420db904f2ce037b3c69a0b57584ac3c198 Mon Sep 17 00:00:00 2001 From: MickaelK Date: Wed, 12 Jun 2024 08:10:09 +1000 Subject: [PATCH] chore (ci): build issue --- Jenkinsfile | 5 +++-- docker/Dockerfile | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index cd317cb2..07848ae2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -76,13 +76,14 @@ pipeline { stage("Release") { steps { // amd64 - sh "docker build -t machines/filestash:latest-amd64 ./docker/" + sh "docker build --no-cache -t machines/filestash:latest-amd64 ./docker/" sh "docker push machines/filestash:latest-amd64" // arm sh "docker buildx build --platform linux/arm64 -t machines/filestash:latest-arm64 ./docker/" // create final image + sh "docker manifest rm machines/filestash:latest || true" sh "docker manifest create machines/filestash:latest --amend machines/filestash:latest-amd64 --amend machines/filestash:latest-arm64v8" sh "docker manifest push machines/filestash:latest" } @@ -99,4 +100,4 @@ pipeline { cleanWs() } } -} +} \ No newline at end of file diff --git a/docker/Dockerfile b/docker/Dockerfile index 31368462..6084759d 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -14,7 +14,7 @@ RUN apk add make git gzip brotli && \ cd public && make compress # STEP3: BUILD THE BACKEND -FROM golang:1.20-bookworm AS builder_backend +FROM golang:1.21-bookworm AS builder_backend WORKDIR /home/ COPY --from=builder_frontend /home/ ./ RUN apt-get update > /dev/null && \