2020-01-23 02:35:30 -06:00
|
|
|
name: push
|
|
|
|
|
2019-12-23 10:53:19 -06:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches-ignore:
|
|
|
|
- release
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
build_cmd:
|
|
|
|
- ./build-latest.sh
|
|
|
|
- PRERELEASE=true ./build-latest.sh
|
|
|
|
- ./build-branches.sh
|
|
|
|
docker_from:
|
|
|
|
- '' # use the default of the DOCKERFILE
|
|
|
|
- python:3.7-alpine
|
|
|
|
- python:3.8-alpine
|
2020-01-23 03:44:02 -06:00
|
|
|
# - python:3.9-rc-alpine # disable until Netbox's unit tests work
|
2019-12-23 10:53:19 -06:00
|
|
|
fail-fast: false
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
name: Builds new Netbox Docker Images
|
|
|
|
steps:
|
2020-01-17 11:10:36 -06:00
|
|
|
- id: git-checkout
|
|
|
|
name: Checkout
|
2019-12-23 10:53:19 -06:00
|
|
|
uses: actions/checkout@v1
|
2020-01-17 11:10:36 -06:00
|
|
|
- id: docker-build
|
|
|
|
name: Build the image from '${{ matrix.docker_from }}' with '${{ matrix.build_cmd }}'
|
2019-12-23 10:53:19 -06:00
|
|
|
run: ${{ matrix.build_cmd }}
|
|
|
|
env:
|
|
|
|
DOCKER_FROM: ${{ matrix.docker_from }}
|
|
|
|
GH_ACTION: enable
|
2020-01-17 11:10:36 -06:00
|
|
|
- id: docker-test
|
|
|
|
name: Test the image
|
2019-12-23 10:53:19 -06:00
|
|
|
run: IMAGE="${FINAL_DOCKER_TAG}" ./test.sh
|
2020-01-17 11:10:36 -06:00
|
|
|
if: steps.docker-build.outputs.skipped != 'true'
|