96132e1dcc
Alpine is releases a new version once a year. Therefore our workflow runs don't need to be marked as failed when run on alpine:edge
41 lines
1.0 KiB
YAML
41 lines
1.0 KiB
YAML
name: push
|
|
|
|
on:
|
|
push:
|
|
branches-ignore:
|
|
- release
|
|
pull_request:
|
|
branches-ignore:
|
|
- release
|
|
|
|
jobs:
|
|
build:
|
|
continue-on-error: ${{ matrix.docker_from == 'alpine:edge' }}
|
|
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
|
|
- alpine:edge
|
|
fail-fast: false
|
|
runs-on: ubuntu-latest
|
|
name: Builds new Netbox Docker Images
|
|
steps:
|
|
- id: git-checkout
|
|
name: Checkout
|
|
uses: actions/checkout@v1
|
|
- 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
|
|
- id: docker-test
|
|
name: Test the image
|
|
run: IMAGE="${FINAL_DOCKER_TAG}" ./test.sh
|
|
if: steps.docker-build.outputs.skipped != 'true'
|