Build on push, not PR

This commit is contained in:
Christian Mäder 2021-03-14 17:27:20 +01:00 committed by cimnine
parent 4a94fa90a3
commit 7e78ca7f61
2 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
name: push
on:
pull_request:
push:
branches-ignore:
- release
@ -65,7 +65,7 @@ jobs:
with:
path: |
.buildx-cache
key: ${{ steps.get-version.outputs.version }}-push-${{ matrix.platform }}-${{ hashFiles('Dockerfile','requirements-container.txt','.netbox/requirements.txt') }}
key: ${{ steps.get-version.outputs.version }}-push-${{ matrix.platform }}-${{ hashFiles('Dockerfile','requirements-container.txt') }}
restore-keys: |
${{ steps.get-version.outputs.version }}-push-
${{ steps.get-version.outputs.version }}-

View File

@ -37,7 +37,7 @@ jobs:
with:
path: |
.buildx-cache
key: ${{ steps.get-version.outputs.version }}-release-${{ matrix.platform }}-${{ hashFiles('Dockerfile','requirements-container.txt','.netbox/requirements.txt') }}
key: ${{ steps.get-version.outputs.version }}-release-${{ matrix.platform }}-${{ hashFiles('Dockerfile','requirements-container.txt') }}
restore-keys: |
${{ steps.get-version.outputs.version }}-release-
${{ steps.get-version.outputs.version }}-