3 Commits

Author SHA1 Message Date
tueem f58d8ef280 fix(docker): implement entrypoint for env var support
build / Go-Build (push) Successful in 1m36s
docker / docker (push) Successful in 4m58s
2026-05-29 00:40:14 +02:00
tueem da6abf0cbe fix(ci): docker only on tags and build on all
docker / docker (push) Successful in 5m3s
build / Go-Build (push) Successful in 1m39s
2026-05-28 23:42:17 +02:00
tueem e05aa849c7 Merge pull request 'Add frontend' (#20) from feat/frontend into dev
build / Go-Build (push) Successful in 1m28s
docker / docker (push) Successful in 5m38s
Reviewed-on: #20
2026-05-28 20:37:53 +00:00
4 changed files with 22 additions and 5 deletions
+4 -2
View File
@@ -3,8 +3,10 @@ name: build
on:
pull_request:
push:
branches-ignore:
- main
branches:
- '**'
tags:
- '**'
jobs:
Go-Build:
+2 -2
View File
@@ -2,8 +2,8 @@ name: docker
on:
push:
branches:
- 'main'
tags:
- '**'
jobs:
docker:
+3 -1
View File
@@ -16,4 +16,6 @@ RUN apt update && apt install -y curl tar \
&& mv resvg /usr/local/bin/resvg \
&& chmod +x /usr/local/bin/resvg
COPY --from=builder /app/svg-templater /usr/local/bin/svg-templater
CMD ["svg-templater"]
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
+13
View File
@@ -0,0 +1,13 @@
#!/bin/sh
CMD="svg-templater"
if [ -n "$API_KEY" ]; then
CMD="$CMD --frontendkey $API_KEY"
fi
if [ -n "$DATA_DIR" ]; then
CMD="$CMD --data $DATA_DIR"
fi
eval exec $CMD "$@"