Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| e862a75fd0 | |||
| 70fc51ed01 | |||
| c02a11bf27 | |||
| 36f71cb4a9 |
@@ -39,3 +39,20 @@ jobs:
|
||||
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
|
||||
-H "Content-Type: application/json" \
|
||||
--data @-
|
||||
|
||||
- name: Trigger Komodo build
|
||||
env:
|
||||
KOMODO_WEBHOOK_URL: https://komodo.urania.dev/listener/github/build/urania_builder_nadir
|
||||
KOMODO_WEBHOOK_SECRET: ${{ secrets.KOMODO_WEBHOOK_SECRET }}
|
||||
run: |
|
||||
# Komodo's GitHub listener requires `ref` + a matching HMAC signature.
|
||||
BODY=$(jq -nc --arg sha "$GITHUB_SHA" \
|
||||
'{ref:"refs/heads/main", after:$sha,
|
||||
repository:{full_name:"${{ github.repository }}",
|
||||
clone_url:"${{ github.server_url }}/${{ github.repository }}.git"}}')
|
||||
SIG=$(printf '%s' "$BODY" | openssl dgst -sha256 -hmac "$KOMODO_WEBHOOK_SECRET" -hex | awk '{print $NF}')
|
||||
curl -fsSL -X POST "$KOMODO_WEBHOOK_URL" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "X-GitHub-Event: push" \
|
||||
-H "X-Hub-Signature-256: sha256=$SIG" \
|
||||
-d "$BODY"
|
||||
|
||||
+13
@@ -12,6 +12,19 @@ COPY . .
|
||||
RUN bun run build
|
||||
|
||||
FROM base AS release
|
||||
ARG VERSION=dev
|
||||
ARG REVISION=unknown
|
||||
ARG CREATED
|
||||
LABEL org.opencontainers.image.title="nadir" \
|
||||
org.opencontainers.image.description="SvelteKit dashboard for nadir-agent — central web console for Nadir backend nodes." \
|
||||
org.opencontainers.image.documentation="https://nadir.urania.dev/docs" \
|
||||
org.opencontainers.image.url="https://tea.urania.dev/urania/nadir-webui" \
|
||||
org.opencontainers.image.source="https://tea.urania.dev/urania/nadir-webui" \
|
||||
org.opencontainers.image.authors="Mirko Isaia <m.isaia@urania.dev>" \
|
||||
org.opencontainers.image.licenses="MIT" \
|
||||
org.opencontainers.image.version="${VERSION}" \
|
||||
org.opencontainers.image.revision="${REVISION}" \
|
||||
org.opencontainers.image.created="${CREATED}"
|
||||
ENV NODE_ENV=production \
|
||||
DATABASE_URL=/app/data/db.sqlite \
|
||||
HOST=0.0.0.0 \
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "clean",
|
||||
"private": true,
|
||||
"version": "0.6.1",
|
||||
"version": "0.6.3",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev:types": "bun run type:generate && bun --bun vite dev --host",
|
||||
|
||||
Reference in New Issue
Block a user