Skip to content

feat(ci): check Dockerfile #2

feat(ci): check Dockerfile

feat(ci): check Dockerfile #2

# Checks periodically that the Dockerfile builds successfully, and if it doesn't, it creates an issue with the error message.
name: Dockerfile Check
on:
workflow_dispatch:
schedule:
# Run every Sunday at midnight
- cron: '0 0 * * 0'
pull_request:
branches:
- main
push:
branches:
- main
jobs:
docker-check:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- run: |
docker build -t forest-test .
docker run --rm forest-test --version
- uses: JasonEtco/create-an-issue@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
filename: .github/DOCKER_ISSUE_TEMPLATE.md