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
3
Jenkinsfile
vendored
3
Jenkinsfile
vendored
|
|
@ -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"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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 && \
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue