From a68f315acb31e738e17d08c745dfa0575cf92ca9 Mon Sep 17 00:00:00 2001 From: Tobias Genannt Date: Mon, 24 Aug 2020 14:39:50 +0200 Subject: [PATCH 1/2] Move default source image to Python 3.8 --- .github/workflows/push.yml | 3 +-- build.sh | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index d803cbc..da397de 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -18,8 +18,7 @@ jobs: - ./build-next.sh - ./build.sh develop docker_from: - - '' # use the default of the DOCKERFILE - - python:3.7-alpine + - '' # use the default of the build script - python:3.8-alpine # - python:3.9-rc-alpine # disable until Netbox's unit tests work fail-fast: false diff --git a/build.sh b/build.sh index 7489ebb..be65bd4 100755 --- a/build.sh +++ b/build.sh @@ -49,7 +49,7 @@ if [ "${1}x" == "x" ] || [ "${1}" == "--help" ] || [ "${1}" == "-h" ]; then echo " DOCKERFILE The name of Dockerfile to use." echo " Default: Dockerfile" echo " DOCKER_FROM The base image to use." - echo " Default: 'python:3.7-alpine'" + echo " Default: 'python:3.8-alpine'" echo " DOCKER_TARGET A specific target to build." echo " It's currently not possible to pass multiple targets." echo " Default: main ldap" @@ -157,7 +157,7 @@ fi # Determining the value for DOCKER_FROM ### if [ -z "$DOCKER_FROM" ]; then - DOCKER_FROM="python:3.7-alpine" + DOCKER_FROM="python:3.8-alpine" fi ### From 32cef1dcf8495f7460f12b3a67ae889e5dde7e4c Mon Sep 17 00:00:00 2001 From: Tobias Genannt Date: Tue, 1 Sep 2020 13:52:01 +0200 Subject: [PATCH 2/2] Enable test on Python 3.9 --- .github/workflows/push.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index da397de..243aa68 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -20,7 +20,7 @@ jobs: docker_from: - '' # use the default of the build script - python:3.8-alpine - # - python:3.9-rc-alpine # disable until Netbox's unit tests work + - python:3.9-rc-alpine fail-fast: false runs-on: ubuntu-latest name: Builds new Netbox Docker Images