Skip to content

Commit

Permalink
Merge pull request #3 from mkpro118/ensure-image-builds
Browse files Browse the repository at this point in the history
Ensure image builds on a PR
  • Loading branch information
mkpro118 authored Jun 20, 2024
2 parents 6397ecc + 7278b8a commit 0627d23
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/push-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
password: ${{ secrets.DOCKER_PAT }}

- name: Build and push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
id: push
with:
context: .
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/validate-dockerfile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Validate Image Build with Dockerfile

on:
pull_request:
branches:
- main

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

- name: Build Image
uses: docker/build-push-action@v6
with:
context: .
push: false
tags: |
throwaway:latest

0 comments on commit 0627d23

Please sign in to comment.