Use -real- docker and upload logs after build
continuous-integration/drone/push Build is passing Details

master
eater 5 years ago
parent 57f812f833
commit a1ce0a56d5
Signed by: eater
GPG Key ID: 656785D50BE51C0A

@ -10,22 +10,39 @@ steps:
- 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
- name: docker
path: /var/run/docker.sock
- name: logs
path: /drone/src/logs
- name: upload logs
image: minio/mc
commands:
- mc config host add minio https://io.cijber.net "$ACCESS_KEY" "$SECRET_KEY"
- mc cp logs/* "minio/logs/$DRONE_REPO/$DRONE_BUILD_NUMBER/"
- 'echo "Logs can be found at: https://io.cijber.net/minio/logs/$DRONE_REPO/$DRONE_BUILD_NUMBER/"'
environment:
ACCESS_KEY:
from_secret: minio_access_key
SECRET_KEY:
from_secret: minio_secret_key
volumes:
- name: logs
path: /drone/src/logs
when:
status:
- failure
- success
volumes:
- name: dockersock
- name: logs
temp: {}
- name: docker
host:
path: /var/run/docker.sock

2
.gitignore vendored

@ -1,2 +1,2 @@
*.log
logs/*.log
build

@ -9,10 +9,10 @@ build_dir="$(dirname "$0")/build"
test -d "${build_dir}" && rm -rf "${build_dir}";
for toolbox in "none" "toybox" "busybox" "default"; do
make IMAGE="${IMAGE}:${DATEPREFIX}-${toolbox}" TOOLBOX="${toolbox}" DOCKER_EXEC="${DOCKER_EXEC}" all > "${toolbox}.log";
make IMAGE="${IMAGE}:${DATEPREFIX}-${toolbox}" TOOLBOX="${toolbox}" DOCKER_EXEC="${DOCKER_EXEC}" all > "logs/${toolbox}.log";
$DOCKER_EXEC tag "${IMAGE}:${DATEPREFIX}-${toolbox}" "${IMAGE}:${toolbox}";
done
make IMAGE="${IMAGE}:${DATEPREFIX}-glibc" TOOLBOX="toybox" ARCH="x86_64" DOCKER_EXEC="${DOCKER_EXEC}" all > "glibc.log";
make IMAGE="${IMAGE}:${DATEPREFIX}-glibc" TOOLBOX="toybox" ARCH="x86_64" DOCKER_EXEC="${DOCKER_EXEC}" all > "logs/glibc.log";
$DOCKER_EXEC tag "${IMAGE}:${DATEPREFIX}-glibc" "${IMAGE}:glibc";

Loading…
Cancel
Save