Add drone build
parent
5f6599c893
commit
888a5ca0aa
@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
name: default
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: build
|
||||||
|
image: d.xr.to/img
|
||||||
|
privileged: true
|
||||||
|
commands:
|
||||||
|
- img login -u "drone" -p "$PASSWORD" d.xr.to
|
||||||
|
- PUSH=y DOCKER=img ./build-tagged.sh
|
||||||
|
environment:
|
||||||
|
PASSWORD:
|
||||||
|
from_secret: pass
|
@ -1,8 +1,13 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
IMAGE="${1:-d.xr.to/base}";
|
IMAGE="${1:-d.xr.to/base}";
|
||||||
MAINTAINER="${2:-=@eater.me}";
|
MAINTAINER="${2:-=@eater.me}";
|
||||||
|
DOCKER_BUILDER="${DOCKER_BUILDER:-docker}"
|
||||||
for toolbox in "none" "toybox" "busybox" "default"; do
|
for toolbox in "none" "toybox" "busybox" "default"; do
|
||||||
make IMAGE="${IMAGE}:${toolbox}" TOOLBOX="${toolbox}";
|
make IMAGE="${IMAGE}:${toolbox}" TOOLBOX="${toolbox}" DOCKER_BUILDER="${DOCKER_BUILDER}";
|
||||||
done
|
done
|
||||||
docker tag "${IMAGE}:toybox" "${IMAGE}:latest";
|
docker tag "${IMAGE}:toybox" "${IMAGE}:latest";
|
||||||
make IMAGE="${IMAGE}:glibc" TOOLBOX="toybox" ARCH="x86_64"
|
make IMAGE="${IMAGE}:glibc" TOOLBOX="toybox" ARCH="x86_64" DOCKER_BUILDER="${DOCKER_BUILDER}"
|
||||||
|
|
||||||
|
if [ "${PUSH}" = "y" ]; then
|
||||||
|
docker push "${IMAGE}";
|
||||||
|
fi
|
||||||
|
Loading…
Reference in New Issue