Next.js 15 + Tailwind CSS v4 week calendar showing Six Flags park hours. Scrapes the internal CloudFront API, stores results in SQLite. Includes Dockerfile (Debian/Playwright-compatible), docker-compose, and Gitea Actions pipeline that builds and pushes to the container registry. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
40 lines
1.0 KiB
YAML
40 lines
1.0 KiB
YAML
name: Build and Deploy
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build-and-push:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set image name
|
|
id: image
|
|
run: |
|
|
IMAGE="${{ vars.REGISTRY_URL }}/josh/sixflagssupercalendar"
|
|
SHA="${{ github.sha }}"
|
|
echo "full=${IMAGE}" >> "$GITHUB_OUTPUT"
|
|
echo "tag_latest=${IMAGE}:latest" >> "$GITHUB_OUTPUT"
|
|
echo "tag_sha=${IMAGE}:${SHA::8}" >> "$GITHUB_OUTPUT"
|
|
|
|
- name: Log in to registry
|
|
run: |
|
|
echo "${{ secrets.REGISTRY_TOKEN }}" | \
|
|
docker login "${{ vars.REGISTRY_URL }}" -u josh --password-stdin
|
|
|
|
- name: Build image
|
|
run: |
|
|
docker build \
|
|
-t "${{ steps.image.outputs.tag_latest }}" \
|
|
-t "${{ steps.image.outputs.tag_sha }}" \
|
|
.
|
|
|
|
- name: Push image
|
|
run: |
|
|
docker push "${{ steps.image.outputs.tag_latest }}"
|
|
docker push "${{ steps.image.outputs.tag_sha }}"
|