2020-01-23 09:35:30 +01:00
|
|
|
name: push
|
|
|
|
|
2019-12-23 17:53:19 +01:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches-ignore:
|
|
|
|
- release
|
2020-01-30 15:48:01 +01:00
|
|
|
pull_request:
|
|
|
|
branches-ignore:
|
|
|
|
- release
|
2019-12-23 17:53:19 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2021-01-20 09:57:30 +01:00
|
|
|
continue-on-error: ${{ matrix.docker_from == 'alpine:edge' }}
|
2019-12-23 17:53:19 +01:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
build_cmd:
|
|
|
|
- ./build-latest.sh
|
|
|
|
- PRERELEASE=true ./build-latest.sh
|
2020-04-08 21:38:50 +02:00
|
|
|
- ./build-next.sh
|
|
|
|
- ./build.sh develop
|
2019-12-23 17:53:19 +01:00
|
|
|
docker_from:
|
2020-08-24 14:39:50 +02:00
|
|
|
- '' # use the default of the build script
|
2020-11-10 15:23:07 +01:00
|
|
|
- alpine:edge
|
2019-12-23 17:53:19 +01:00
|
|
|
fail-fast: false
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
name: Builds new Netbox Docker Images
|
|
|
|
steps:
|
2020-01-17 18:10:36 +01:00
|
|
|
- id: git-checkout
|
|
|
|
name: Checkout
|
2019-12-23 17:53:19 +01:00
|
|
|
uses: actions/checkout@v1
|
2020-01-17 18:10:36 +01:00
|
|
|
- id: docker-build
|
|
|
|
name: Build the image from '${{ matrix.docker_from }}' with '${{ matrix.build_cmd }}'
|
2019-12-23 17:53:19 +01:00
|
|
|
run: ${{ matrix.build_cmd }}
|
|
|
|
env:
|
|
|
|
DOCKER_FROM: ${{ matrix.docker_from }}
|
|
|
|
GH_ACTION: enable
|
2020-01-17 18:10:36 +01:00
|
|
|
- id: docker-test
|
|
|
|
name: Test the image
|
2019-12-23 17:53:19 +01:00
|
|
|
run: IMAGE="${FINAL_DOCKER_TAG}" ./test.sh
|
2020-01-17 18:10:36 +01:00
|
|
|
if: steps.docker-build.outputs.skipped != 'true'
|