netbox-docker/.github/workflows/push.yml

40 lines
1010 B
YAML
Raw Normal View History

2020-01-23 09:35:30 +01:00
name: push
on:
push:
branches-ignore:
- release
2020-01-30 15:48:01 +01:00
pull_request:
branches-ignore:
- release
jobs:
build:
strategy:
matrix:
build_cmd:
- ./build-latest.sh
- PRERELEASE=true ./build-latest.sh
- ./build-next.sh
- ./build.sh develop
docker_from:
- '' # use the default of the build script
# - python:3.10-rc-alpine # disable until dependencies work
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
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 }}'
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
run: IMAGE="${FINAL_DOCKER_TAG}" ./test.sh
2020-01-17 18:10:36 +01:00
if: steps.docker-build.outputs.skipped != 'true'