Skip to content

Commit

Permalink
Buildx version pinning
Browse files Browse the repository at this point in the history
  • Loading branch information
daya0576 committed Jan 29, 2025
1 parent 290d67f commit 82be98d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ name: Publish Release
on:
workflow_dispatch:
push:
tags:
- v**
branches:
- debug_docker_image
- 'main'
- 'debug_docker_image'
tags:
- 'v*'

env:
REGISTRY_IMAGE: daya0576/beaverhabits
Expand Down Expand Up @@ -96,6 +97,8 @@ jobs:

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
version: v0.20.0

- name: Docker meta
id: meta
Expand All @@ -104,9 +107,8 @@ jobs:
images: |
${{ env.REGISTRY_IMAGE }}
tags: |
type=ref,event=branch
type=raw,value=latest,enable={{is_default_branch}}
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=sha
- name: Create manifest list and push
Expand Down
6 changes: 3 additions & 3 deletions beaverhabits/frontend/habit_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ def card_title(title: str, target: str):


@contextmanager
def card(link: str | None = None, padding: float = 3):
def card(link: str | None = None, padding: float = 3, width: int = 350):
with ui.card().classes("gap-0 no-shadow items-center") as card:
card.classes(f"p-{padding}")
card.classes("w-full")
card.style("max-width: 350px")
card.style(f"width: {width}px")
if link:
card.classes("cursor-pointer")
card.on("click", lambda: redirect(link))
Expand All @@ -44,7 +44,7 @@ def card(link: str | None = None, padding: float = 3):

@ui.refreshable
def habit_page(today: datetime.date, habit: Habit):
with ui.column().classes("gap-y-3"):
with ui.column().classes("gap-y-3 grid grid-cols-1 lg:grid-cols-2 xl:grid-cols-3"):
habit_calendar = CalendarHeatmap.build(today, WEEKS_TO_DISPLAY, calendar.MONDAY)
target = get_habit_heatmap_path(habit)

Expand Down

0 comments on commit 82be98d

Please sign in to comment.