Update .gitlab-ci.yml, restic/Dockerfile, minio/Dockerfile, restic/version, restic/Makefile files

This commit is contained in:
2020-12-20 17:32:44 +00:00
parent c79810b5e0
commit b19d80e94a
5 changed files with 48 additions and 1 deletions

18
restic/Makefile Normal file
View File

@ -0,0 +1,18 @@
NAMESPACE=alemairebe
include version
IMAGE=restic
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,linux/ppc64le --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) .