mirror of
https://github.com/mickael-kerjean/filestash
synced 2025-12-06 08:22:24 +01:00
chore (ci): build issue
This commit is contained in:
parent
a35590d49b
commit
11a01420db
2 changed files with 4 additions and 3 deletions
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
|
|
@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -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 && \
|
||||
|
|
|
|||
Loading…
Reference in a new issue