Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Commit

Permalink
Merge pull request #756 from DFE-Digital/workflow-build-docker
Browse files Browse the repository at this point in the history
Test the docker build if the Dockerfile changes
  • Loading branch information
dneed-nimble authored Jul 9, 2024
2 parents 3696e47 + 0bcc922 commit 911a640
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Docker build

on:
pull_request:
paths:
- Dockerfile
types: [opened, synchronize]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build docker image
uses: docker/build-push-action@v5
with:
secrets: github_token=${{ secrets.GITHUB_TOKEN }}
push: false

0 comments on commit 911a640

Please sign in to comment.