mirror of
https://github.com/garethgeorge/backrest.git
synced 2026-05-30 00:10:54 +00:00
fix various build issues
This commit is contained in:
+8
-4
@@ -106,14 +106,16 @@ dockers_v2:
|
||||
dockerfile: Dockerfile.alpine
|
||||
flags:
|
||||
- "--pull"
|
||||
# provenance attestations break the multi-arch manifest for armv6/armv7/386
|
||||
- "--provenance=false"
|
||||
ids:
|
||||
- linux
|
||||
- docker-entrypoint
|
||||
platforms:
|
||||
- linux/amd64
|
||||
- linux/arm64
|
||||
- linux/armv6
|
||||
- linux/armv7
|
||||
- linux/arm/v6
|
||||
- linux/arm/v7
|
||||
- linux/386
|
||||
|
||||
- id: scratch
|
||||
@@ -128,14 +130,16 @@ dockers_v2:
|
||||
dockerfile: Dockerfile.scratch
|
||||
flags:
|
||||
- "--pull"
|
||||
# provenance attestations break the multi-arch manifest for armv6/armv7/386
|
||||
- "--provenance=false"
|
||||
ids:
|
||||
- linux
|
||||
- docker-entrypoint
|
||||
platforms:
|
||||
- linux/amd64
|
||||
- linux/arm64
|
||||
- linux/armv6
|
||||
- linux/armv7
|
||||
- linux/arm/v6
|
||||
- linux/arm/v7
|
||||
- linux/386
|
||||
|
||||
brews:
|
||||
|
||||
+4
-3
@@ -4,9 +4,10 @@ RUN apk --no-cache add tini ca-certificates curl bash rclone openssh tzdata dock
|
||||
rclone selfupdate --stable
|
||||
RUN mkdir -p /tmp
|
||||
|
||||
# Copy the binary we built via goreleaser
|
||||
COPY backrest /backrest
|
||||
COPY docker-entrypoint /docker-entrypoint
|
||||
ARG TARGETPLATFORM
|
||||
# Binaries are staged per-platform by goreleaser dockers_v2
|
||||
COPY $TARGETPLATFORM/backrest /backrest
|
||||
COPY $TARGETPLATFORM/docker-entrypoint /docker-entrypoint
|
||||
|
||||
# Run the binary to install dependencies (may run via QEMU but necessary)
|
||||
RUN /backrest --install-deps-only
|
||||
|
||||
+6
-5
@@ -3,8 +3,9 @@ FROM alpine:latest AS alpine
|
||||
RUN apk add --no-cache ca-certificates tini-static
|
||||
RUN mkdir /tmp-orig
|
||||
|
||||
# Copy binary from goreleaser to run install-deps
|
||||
COPY backrest /backrest
|
||||
ARG TARGETPLATFORM
|
||||
# Binaries are staged per-platform by goreleaser dockers_v2
|
||||
COPY $TARGETPLATFORM/backrest /backrest
|
||||
RUN /backrest --install-deps-only
|
||||
|
||||
# Setup restic path
|
||||
@@ -20,9 +21,9 @@ COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
||||
COPY --from=alpine /bin/restic /bin/restic
|
||||
COPY --from=alpine /sbin/tini-static /tini
|
||||
|
||||
# Copy binaries from goreleaser
|
||||
COPY backrest /backrest
|
||||
COPY docker-entrypoint /docker-entrypoint
|
||||
ARG TARGETPLATFORM
|
||||
COPY $TARGETPLATFORM/backrest /backrest
|
||||
COPY $TARGETPLATFORM/docker-entrypoint /docker-entrypoint
|
||||
|
||||
ENTRYPOINT ["/tini", "--", "/docker-entrypoint"]
|
||||
CMD ["/backrest"]
|
||||
|
||||
Reference in New Issue
Block a user