- Added a Makefile to easily run project scripts (fees, match, web, image) - Modified attendance.py to dynamically handle a variable number of header rows from the Google Sheet - Updated both attendance calculations and calculate_fees terminal output to show actual attendance counts (e.g., '750 CZK (3)') - Created a Flask web dashboard (app.py and templates/fees.html) to view member fees in an attractive, condensed, terminal-like UI - Bound the Flask server to port 5000 and added a routing alias from '/' to '/fees' - Configured Python virtual environment (.venv) creation directly into the Makefile to resolve global pip install errors on macOS Co-authored-by: Antigravity <antigravity@deepmind.com>
36 lines
858 B
YAML
36 lines
858 B
YAML
name: Build and Push
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
tag:
|
|
description: 'Image tag'
|
|
required: true
|
|
default: 'latest'
|
|
push:
|
|
tags:
|
|
- '*'
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
packages: write
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Login to Gitea registry
|
|
run: echo "${{ secrets.REGISTRY_TOKEN }}" | docker login -u ${{ github.actor }} --password-stdin gitea.home.hrajfrisbee.cz
|
|
|
|
- name: Build and push
|
|
run: |
|
|
TAG=${{ github.ref_name }}
|
|
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
|
|
TAG=${{ inputs.tag }}
|
|
fi
|
|
IMAGE=gitea.home.hrajfrisbee.cz/${{ github.repository }}:$TAG
|
|
docker build -f build/Dockerfile -t $IMAGE .
|
|
docker push $IMAGE
|