Skip to content

Commit

Permalink
Create docker_test_build.yml
Browse files Browse the repository at this point in the history
automatic test builds dockerfile on pull request. This will prevent merging to master if Dockerfile fails to build correctly.
  • Loading branch information
dthoward96 authored Mar 8, 2024
1 parent b5a3a41 commit 800cc5e
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/docker_test_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Build test Docker image

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: docker build . --file Dockerfile

0 comments on commit 800cc5e

Please sign in to comment.