Split PRs into a dedicated workflow

master
Chris Kankiewicz 2021-09-01 15:09:38 -07:00
parent aef10c3fbc
commit 6cc122b4d1
No known key found for this signature in database
GPG Key ID: 474E915709CEB5EB
2 changed files with 18 additions and 4 deletions

15
.github/workflows/build-image.yaml vendored Normal file
View File

@ -0,0 +1,15 @@
name: Test Build
on: [pull_request_target]
jobs:
build-image:
name: Build Image
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Build Image
run: make build

View File

@ -1,17 +1,16 @@
name: Publish Image
name: Build & Publish Image
on:
push:
branches: ['master']
tags: ['*']
pull_request:
branches: ['master']
env:
DOCKER_HUB_USER: phlak
jobs:
build-container:
build-and-publish-image:
name: Build & Publish Image
runs-on: ubuntu-latest
steps: