add dev script
Build image / build (push) Waiting to run Details

This commit is contained in:
Alie 2024-07-07 13:24:43 +02:00
parent 99af813d76
commit 49655af3e3
3 changed files with 6 additions and 5 deletions

View File

@ -17,6 +17,7 @@
"build": "tsc -p .",
"start": "NODE_PATH=./dist node dist/index.js",
"buildandpush": "docker buildx build --push --platform=linux/amd64,linux/arm64 -t git.fai.st/bizcochito/bizcochito.onion .",
"deploy": "npm run buildandpush && sleep 3 && kubectl rollout restart deploy/web -n web"
"deploy": "npm run buildandpush && sleep 3 && kubectl rollout restart deploy/web -n web",
"dev": "npm run build && npm run start"
}
}

View File

@ -1,7 +1,7 @@
{% macro images_list(image_list, height=31) %}
{% macro images_list(image_list, height=31, url=false) %}
<div class="img">
{% for image in image_list %}
<a href="https://{{ image.url }}">
<a href="{%- if url -%}https://{{ image.url }}{%- endif -%}">
<img style="height:{{ height }}px;
width:auto"
src="static/icons/{{ image.folder }}/{{ image.name }}"

View File

@ -13,12 +13,12 @@
Funni gifs
</h2>
{% from "imagelist.njk" import images_list as il2 %}
{{ il2(image("gif"), height=50 ) }}
{{ il2(image("gif") , height=50 ) }}
<h2>
Frens
</h2>
{% from "imagelist.njk" import images_list as il3 %}
{{ il3(image("8831") ) }}
{{ il3(image("8831") , url=true ) }}
<h2>
Another banner that is unused
</h2>