Skip to content

Commit

Permalink
Add MVP basic test step to be able to check if PR's actually allow to…
Browse files Browse the repository at this point in the history
… build the image
  • Loading branch information
mollux committed Apr 16, 2024
1 parent 8c2e196 commit df611ff
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
File renamed without changes.
27 changes: 27 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Test build Docker image

on:
pull_request:
schedule:
# Run every day at 10:45 AM UTC to discover potential issues with dependencies like PHP updates etc.
- cron: '45 10 * * *'

jobs:
build-image:
runs-on: ubuntu-latest
strategy:
matrix:
image_type: [apache, fpm]
permissions:
contents: read

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
file: ${{ matrix.image_type }}/Dockerfile
context: .
tags: ${{ matrix.image_type }}-test

0 comments on commit df611ff

Please sign in to comment.