Add initial project setup with Docker, GitHub Actions, and meal timetable functionality

- Create Dockerfile for multi-stage build
- Set up GitHub Actions workflow for CI/CD
- Implement meal and timetable fetching logic
- Add README and configuration files
- Include cron job for scheduled execution
- Establish .gitignore for build artifacts and environment files
This commit is contained in:
암냥 2026-03-06 23:32:46 +09:00
commit 40116ec84c
No known key found for this signature in database
14 changed files with 519 additions and 0 deletions

35
.github/workflows/main.yml vendored Normal file
View file

@ -0,0 +1,35 @@
on:
push:
branches:
- main
workflow_dispatch:
name: Web Build
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v3
with:
context: .
file: ./Dockerfile
push: true
cache-from: type=gha
cache-to: type=gha,mode=max
tags: |
ghcr.io/imnyang/today.sunrin:latest
ghcr.io/imnyang/today.sunrin:${{ github.run_id }}