mirror of
https://gitlab.com/alemaire/buildx.git
synced 2025-01-11 02:53:30 +00:00
Compare commits
No commits in common. "5f577866aebe901d1e804bb1228be55cca5f9be1" and "88d4303396b76185d51e4119e11709815490b2a7" have entirely different histories.
5f577866ae
...
88d4303396
@ -150,17 +150,6 @@ roundcubemail:
|
|||||||
variables:
|
variables:
|
||||||
- $CI_COMMIT_REF_PROTECTED == "true"
|
- $CI_COMMIT_REF_PROTECTED == "true"
|
||||||
|
|
||||||
borg:
|
|
||||||
stage: build
|
|
||||||
tags:
|
|
||||||
- docker
|
|
||||||
script:
|
|
||||||
- cd borg
|
|
||||||
- make push
|
|
||||||
only:
|
|
||||||
variables:
|
|
||||||
- $CI_COMMIT_REF_PROTECTED == "true"
|
|
||||||
|
|
||||||
.docker_init: &docker_init |
|
.docker_init: &docker_init |
|
||||||
if ! docker info &>/dev/null; then
|
if ! docker info &>/dev/null; then
|
||||||
if [ -z "${DOCKER_HOST}" -a "${KUBERNETES_PORT}" ]; then
|
if [ -z "${DOCKER_HOST}" -a "${KUBERNETES_PORT}" ]; then
|
||||||
|
@ -1,19 +0,0 @@
|
|||||||
FROM debian:buster-20210111-slim as builder
|
|
||||||
ARG DEBIAN_FRONTEND=noninteractive
|
|
||||||
ARG TARGETARCH
|
|
||||||
RUN apt update -qq && apt install wget -qqy && rm -rf /var/lib/apt/lists/*
|
|
||||||
ARG VERSION
|
|
||||||
RUN case $TARGETARCH in \
|
|
||||||
arm) \
|
|
||||||
wget https://dl.bintray.com/borg-binary-builder/borg-binaries/borg-${VERSION}-armv6 -O /usr/bin/borg \
|
|
||||||
;; \
|
|
||||||
arm64) \
|
|
||||||
wget https://dl.bintray.com/borg-binary-builder/borg-binaries/borg-${VERSION}-arm64 -O /usr/bin/borg \
|
|
||||||
;; \
|
|
||||||
amd64) \
|
|
||||||
wget https://github.com/borgbackup/borg/releases/download/${VERSION}/borg-linux64 -O /usr/bin/borg \
|
|
||||||
;; \
|
|
||||||
esac && \
|
|
||||||
chmod a+x /usr/bin/borg
|
|
||||||
FROM debian:buster-20210111-slim
|
|
||||||
COPY --from=builder /usr/bin/borg /usr/bin/borg
|
|
@ -1,18 +0,0 @@
|
|||||||
NAMESPACE=alemairebe
|
|
||||||
include version
|
|
||||||
|
|
||||||
IMAGE=borg
|
|
||||||
|
|
||||||
nopush:
|
|
||||||
docker buildx build --platform linux/amd64 --load \
|
|
||||||
--build-arg VERSION=$(VERSION) \
|
|
||||||
--tag ${NAMESPACE}/${IMAGE}:$(VERSION) \
|
|
||||||
--tag ${CI_REGISTRY_IMAGE}/${IMAGE}:$(VERSION) .
|
|
||||||
|
|
||||||
push:
|
|
||||||
docker buildx build --platform linux/amd64,linux/arm64,linux/arm --push \
|
|
||||||
--build-arg VERSION=$(VERSION) \
|
|
||||||
--cache-from=type=registry,ref=${NAMESPACE}/buildx:${IMAGE} \
|
|
||||||
--cache-to=type=registry,ref=${NAMESPACE}/buildx:${IMAGE} \
|
|
||||||
--tag ${NAMESPACE}/${IMAGE}:$(VERSION) \
|
|
||||||
--tag ${CI_REGISTRY_IMAGE}/${IMAGE}:$(VERSION) .
|
|
@ -1 +0,0 @@
|
|||||||
VERSION=1.1.15
|
|
@ -1,2 +1,2 @@
|
|||||||
VERSION=6.1.54
|
VERSION=6.1.51
|
||||||
UNIFI_VERSION=6.1.54-f60db383e8
|
UNIFI_VERSION=6.1.51-c1b4383e0f
|
||||||
|
Loading…
Reference in New Issue
Block a user