From c9b9e3018898b760267fd8394459032bfd0f41d3 Mon Sep 17 00:00:00 2001 From: Alexey Sokolov Date: Sun, 9 Dec 2018 22:30:24 +0000 Subject: [PATCH 1/3] Travis: run parts of the Docker build even for pull requests --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index a26a0811..1785f7f4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -83,7 +83,7 @@ matrix: - export SECRET_KEY=no DOCKER_PASSWORD=no DOCKER_USERNAME=no script: - echo "$TRAVIS_BRANCH-$(git describe)" > .nightly - - if [[ "$ATTEMPT_DEPLOY" == "yes" ]]; then docker build --build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` --build-arg VCS_REF=`git rev-parse HEAD` --build-arg VERSION_EXTRA=+docker-git- -t "zncbouncer/znc-git:$TRAVIS_BRANCH" -t "zncbouncer/znc-git:$TRAVIS_BRANCH-$(git describe)" .; fi + - docker build --build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` --build-arg VCS_REF=`git rev-parse HEAD` --build-arg VERSION_EXTRA=+docker-git- -t "zncbouncer/znc-git:$TRAVIS_BRANCH" -t "zncbouncer/znc-git:$TRAVIS_BRANCH-$(git describe)" . - if [[ "$ATTEMPT_DEPLOY" == "yes" && "$TRAVIS_BRANCH" == "master" ]]; then docker tag "zncbouncer/znc-git:$TRAVIS_BRANCH" zncbouncer/znc-git:latest; fi - if [[ "$ATTEMPT_DEPLOY" == "yes" ]]; then docker push zncbouncer/znc-git; fi after_success: From a28c5f805635a88e6ded4068eec154d3eb1df4a8 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Sun, 9 Dec 2018 13:59:25 -0800 Subject: [PATCH 2/3] Fix compilation with LibreSSL < 2.7.0 LibreSSL was stubborn and did not implement all of OpenSSL 1.1 despite advertising support for it. Fixed in 2.7.0. Close #1623 --- src/Utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Utils.cpp b/src/Utils.cpp index 11f32121..ceee05b3 100644 --- a/src/Utils.cpp +++ b/src/Utils.cpp @@ -29,7 +29,7 @@ #include #include #include -#if OPENSSL_VERSION_NUMBER < 0x10100000L +#if (OPENSSL_VERSION_NUMBER < 0x10100000L) || (LIBRESSL_VERSION_NUMBER < 0x20700000L) #define X509_getm_notBefore X509_get_notBefore #define X509_getm_notAfter X509_get_notAfter #endif From ad247cd2a5f064e7086dc733e148ad2598555752 Mon Sep 17 00:00:00 2001 From: Alexey Sokolov Date: Sun, 9 Dec 2018 22:48:43 +0000 Subject: [PATCH 3/3] Update alpine to 3.8 in Dockerfile for nightlies --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 7a2c2742..0cdcf21e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM alpine:3.7 +FROM alpine:3.8 ARG VERSION_EXTRA=""