Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ci): check Dockerfile #4784

Merged
merged 3 commits into from
Sep 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/DOCKER_ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
title: "[automated] Docker check failure"
labels: ["Bug"]
---

## Description

Latest Docker check failed. Please check the logs for more information.

<!-- link will be added here in a follow-up once the corresponding workflow lands on main -->
23 changes: 23 additions & 0 deletions .github/workflows/dockerfile-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# 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'

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
if: failure()
env:
LesnyRumcajs marked this conversation as resolved.
Show resolved Hide resolved
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
filename: .github/DOCKER_ISSUE_TEMPLATE.md
Loading