chore (ci): build issue

This commit is contained in:
MickaelK 2024-06-12 08:10:09 +10:00
parent a35590d49b
commit 11a01420db
2 changed files with 4 additions and 3 deletions

5
Jenkinsfile vendored
View file

@ -76,13 +76,14 @@ pipeline {
stage("Release") { stage("Release") {
steps { steps {
// amd64 // 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" sh "docker push machines/filestash:latest-amd64"
// arm // arm
sh "docker buildx build --platform linux/arm64 -t machines/filestash:latest-arm64 ./docker/" sh "docker buildx build --platform linux/arm64 -t machines/filestash:latest-arm64 ./docker/"
// create final image // 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 create machines/filestash:latest --amend machines/filestash:latest-amd64 --amend machines/filestash:latest-arm64v8"
sh "docker manifest push machines/filestash:latest" sh "docker manifest push machines/filestash:latest"
} }
@ -99,4 +100,4 @@ pipeline {
cleanWs() cleanWs()
} }
} }
} }

View file

@ -14,7 +14,7 @@ RUN apk add make git gzip brotli && \
cd public && make compress cd public && make compress
# STEP3: BUILD THE BACKEND # STEP3: BUILD THE BACKEND
FROM golang:1.20-bookworm AS builder_backend FROM golang:1.21-bookworm AS builder_backend
WORKDIR /home/ WORKDIR /home/
COPY --from=builder_frontend /home/ ./ COPY --from=builder_frontend /home/ ./
RUN apt-get update > /dev/null && \ RUN apt-get update > /dev/null && \