Skip to content

Commit ccd4dd1

Browse files
committed
ci: updated docker building and publishing workflow using ga
Signed-off-by: Varun Raj <mailme@varunraj.in>
1 parent 21b053a commit ccd4dd1

File tree

3 files changed

+55
-1
lines changed

3 files changed

+55
-1
lines changed

.github/workflows/docker-release.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Docker Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
16+
- name: Set up Docker Buildx
17+
uses: docker/setup-buildx-action@v3
18+
19+
- name: Login to DockerHub
20+
uses: docker/login-action@v3
21+
with:
22+
username: ${{ secrets.DOCKER_USERNAME }}
23+
password: ${{ secrets.DOCKER_PASSWORD }}
24+
25+
- name: Extract version from tag
26+
id: extract_version
27+
run: |
28+
VERSION=${GITHUB_REF#refs/tags/}
29+
VERSION=${VERSION#v}
30+
echo "VERSION=$VERSION" >> $GITHUB_ENV
31+
32+
- name: Build and push Docker image
33+
run: |
34+
docker buildx build --build-arg VERSION=${{ env.VERSION }} \
35+
--platform linux/amd64,linux/arm64 \
36+
--push -t varunraj/immich-power-tools:${{ env.VERSION }} \
37+
-t varunraj/immich-power-tools:latest .

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "immich-power-tools",
3-
"version": "0.1.0",
3+
"version": "0.1.3",
44
"private": true,
55
"scripts": {
66
"dev": "next dev",

src/components/albums/potential-albums/PotentialAlbumsAssets.tsx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import React, { useEffect, useMemo, useState } from "react";
66
import { Gallery } from "react-grid-gallery";
77
import Lightbox from "yet-another-react-lightbox";
88
import Captions from "yet-another-react-lightbox/plugins/captions";
9+
import { CalendarArrowDown, CalendarArrowUp, Hourglass } from "lucide-react";
910

1011
export default function PotentialAlbumsAssets() {
1112
const { startDate, selectedIds, assets, updateContext } = usePotentialAlbumContext();
@@ -64,6 +65,22 @@ export default function PotentialAlbumsAssets() {
6465
if (startDate) fetchAssets();
6566
}, [startDate]);
6667

68+
if (loading) return (
69+
<div className="flex flex-col gap-2 h-full justify-center items-center w-full">
70+
<Hourglass />
71+
<p className="text-lg">Loading...</p>
72+
</div>
73+
)
74+
75+
if (!startDate) return (
76+
<div className="flex flex-col gap-2 h-full justify-center items-center w-full">
77+
<CalendarArrowUp />
78+
<p className="text-lg">Please select a date</p>
79+
<p className="text-sm">
80+
When you select a date from the left, you will see all the orphan assets captured on that date
81+
</p>
82+
</div>
83+
)
6784
return (
6885
<>
6986
<Lightbox

0 commit comments

Comments
 (0)