Compare commits

2 Commits

Author SHA1 Message Date
bd0672e49d ci: update build-presejpacky workflow to match validated Gitea template
All checks were successful
Build and Push Presejpacky Docker Image / build-and-push (push) Successful in 50s
2026-06-07 23:29:40 +02:00
7f4b463e4c chore: adjust paddys-endzone container and speed settings 2026-06-07 17:01:08 +02:00
3 changed files with 30 additions and 53 deletions

View File

@@ -1,6 +1,12 @@
name: Build and Push Presejpacky Docker Image
on:
workflow_dispatch:
inputs:
tag:
description: 'Image tag'
required: true
default: 'latest'
push:
branches:
- main
@@ -12,35 +18,29 @@ on:
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to Gitea Registry
uses: docker/login-action@v3
with:
registry: gitea.home.hrajfrisbee.cz
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker metadata
id: meta
uses: docker/metadata-action@v5
with:
images: |
gitea.home.hrajfrisbee.cz/${{ github.repository_owner }}/flat-stack-presejpacky
tags: |
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }}
type=match,pattern=presejpacky-v(.*),group=1
- 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 image
uses: docker/build-push-action@v6
with:
context: drills/flat-stack-presejpacky
file: drills/flat-stack-presejpacky/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
run: |
TAG=${{ github.ref_name }}
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
TAG=${{ inputs.tag }}
elif [ "${{ github.ref }}" = "refs/heads/main" ]; then
TAG="latest"
fi
IMAGE=gitea.home.hrajfrisbee.cz/${{ github.repository_owner }}/flat-stack-presejpacky:$TAG
docker build -f drills/flat-stack-presejpacky/Dockerfile \
--build-arg GIT_TAG=$TAG \
--build-arg GIT_COMMIT=${{ github.sha }} \
--build-arg BUILD_DATE=$(date -u +%Y-%m-%dT%H:%M:%SZ) \
-t $IMAGE drills/flat-stack-presejpacky
docker push $IMAGE

View File

@@ -25,7 +25,8 @@
.container {
width: 100%;
max-width: 650px;
height: 80%;
max-width: 450px;
display: flex;
flex-direction: column;
gap: 15px;
@@ -133,8 +134,8 @@
<div class="speed-row">
<label for="speedSelect">Animation Speed:</label>
<select id="speedSelect">
<option value="1">Normal</option>
<option value="2" selected>Faster</option>
<option value="1" selected>Normal</option>
<option value="2">Faster</option>
<option value="4">High Speed</option>
<option value="8">Insane (No Skips)</option>
</select>

View File

@@ -1,25 +1 @@
Can you create ultimate frisbee drill animation for me?
```
Drill: Paddy's endzone
Players: 2 short vertical stacks in the endzone separated by slightly bigger space in the middle, players in the stack are close together, one at the back and other on the front each of them moving independently on the other, one player in front of the endzone, about 10-20 metres away and 10 metres from the sideline
Field:
- Field has lines as ultimate frisbee field would have
- make proportions of the endzone and rest of the field realistic
- Field takes up whole width of the canvas
- It is enough to have only half of the field in the picture
Setup: H1 at the disc, H2,H4,H6 in the back stack - starting with H2 closest to back endzone libe, H3, H5, H7 in the front stack - starting with H3 closest to player with disc, whole front stack is fully in the endzone
Extra details:
- when you are showing pass in the animation make it at least in 3 frames
- make default speed faster and faster even faster, possibly add 2 more speed options, faster speed should not skip frames, it just should move quicker from one to another
- make sure players do not cut out of bounds
- allow to go through animation one step at a time
Steps:
1. H2 cuts to the oposite side of H1 with cut parallel to the back line and H1 throws around forehand over both stacks and hits H2 about 3 metres off the sideline curving to the receiver
2. H1 moves into position closest to the front of end zone of the back stack, whole back stack moves so that player closest to the back of endzone is on the same position last player was on the start of the drill
3. H3 cuts out of the endzone to similar place where H1 was, but on the other side and gets pass from H2
4. H2 moves to the back of the front stack which moves in the way it now starts on the same spot as when we begun the drill
5. H4 cuts in the same way H2 cut in the step 1, only to the oposite side and H3 throws around backhand both stacks and hits H4 about 3 metres off the sideline curving to the receiver
7. H3 moves into position closest to the front of end zone of the back stack, whole back stack moves so that player closest to the back of endzone is on the same position last player was on the start of the drill
6. H5 cuts out of the endzone to place where H1 was, gets pass from H4, H4 moves to the back of the front stack
```