master
eater 5 years ago
parent 58a4df762c
commit b1311646c7
Signed by: eater
GPG Key ID: 656785D50BE51C0A

@ -6,10 +6,26 @@ steps:
- name: build
image: d.xr.to/eater/base
privileged: true
volumes:
- name: dockersock
path: /var/run
commands:
- sleep 15 # wait for docker baby
- docker login -u "drone" -p "$PASSWORD" d.xr.to
- ./build-tagged.sh
- docker push d.xr.to/base
environment:
PASSWORD:
from_secret: pass
services:
- name: docker
image: docker:dind
privileged: true
volumes:
- name: dockersock
path: /var/run
volumes:
- name: dockersock
temp: {}

@ -4,12 +4,13 @@ set -e;
DOCKER_EXEC="${DOCKER_EXEC:-docker}";
IMAGE="${1:-d.xr.to/base}";
MAINTAINER="${2:-=@eater.me}";
DATEPREFIX="$(date +"%Y%m%d")"
build_dir="$(dirname "$0")/build"
test -d "${build_dir}" && rm -rf "${build_dir}";
for toolbox in "none" "toybox" "busybox" "default"; do
make IMAGE="${IMAGE}:${toolbox}" TOOLBOX="${toolbox}" DOCKER_EXEC="${DOCKER_EXEC}" all > "${toolbox}.log";
make IMAGE="${IMAGE}:${DATEPREFIX}-${toolbox}" TOOLBOX="${toolbox}" DOCKER_EXEC="${DOCKER_EXEC}" all > "${toolbox}.log";
$DOCKER_EXEC tag "${IMAGE}:${DATEPREFIX}-${toolbox}" "${toolbox}";
done
$DOCKER_EXEC tag "${IMAGE}:toybox" "${IMAGE}:latest";
make IMAGE="${IMAGE}:glibc" TOOLBOX="toybox" ARCH="x86_64" DOCKER_EXEC="${DOCKER_EXEC}" all > "glibc.log";
$DOCKER_EXEC tag "${IMAGE}:${DATEPREFIX}-toybox" "${IMAGE}:${DATEPREFIX}";
make IMAGE="${IMAGE}:${DATEPREFIX}-glibc" TOOLBOX="toybox" ARCH="x86_64" DOCKER_EXEC="${DOCKER_EXEC}" all > "glibc.log";

Loading…
Cancel
Save