mirror of
https://github.com/seriousm4x/UpSnap.git
synced 2026-04-05 08:53:55 -04:00
Squashed commit of the following:
commit a506e6fee1c90d2262f25eb680686adbfb3b2be0 Author: Maxi Quoß <maxi@quoss.org> Date: Sun Jan 29 17:08:40 2023 +0100 update docker commit445b735b11Author: Maxi Quoß <maxi@quoss.org> Date: Sun Jan 29 16:31:46 2023 +0100 dont use v commitfb30405396Author: Maxi Quoß <maxi@quoss.org> Date: Sun Jan 29 16:30:51 2023 +0100 dont use v commit49cf2b2607Author: Maxi Quoß <maxi@quoss.org> Date: Sun Jan 29 16:23:31 2023 +0100 try tag commit57bef8bb7eAuthor: Maxi Quoß <maxi@quoss.org> Date: Sun Jan 29 16:10:28 2023 +0100 rawversion commit51e071bf22Author: Maxi Quoß <maxi@quoss.org> Date: Sun Jan 29 15:58:48 2023 +0100 try again with v commit4ce90f1f5fAuthor: Maxi Quoß <maxi@quoss.org> Date: Sun Jan 29 15:54:10 2023 +0100 try again with v commit6fd289e1a7Author: Maxi Quoß <maxi@quoss.org> Date: Sun Jan 29 15:47:56 2023 +0100 workflow: tags commit8e7d4e814fAuthor: Maxi Quoß <maxi@quoss.org> Date: Sun Jan 29 15:37:54 2023 +0100 workflow: env is broken commiteb311bf289Author: Maxi Quoß <maxi@quoss.org> Date: Sun Jan 29 15:30:44 2023 +0100 workflow: env commitfea958c4fcAuthor: Maxi Quoß <maxi@quoss.org> Date: Sun Jan 29 15:26:54 2023 +0100 workflow: env commit8f59fb448fAuthor: Maxi Quoß <maxi@quoss.org> Date: Sun Jan 29 15:22:46 2023 +0100 workflow: env commite303e7af64Author: Maxi Quoß <maxi@quoss.org> Date: Sun Jan 29 15:20:43 2023 +0100 workflow: docker meta image name commitd47c21c3dbAuthor: Maxi Quoß <maxi@quoss.org> Date: Sun Jan 29 15:15:03 2023 +0100 docker: fix unzip commit4eb1c98729Author: Maxi Quoß <maxi@quoss.org> Date: Sun Jan 29 15:05:48 2023 +0100 docker: unzip -q commitfe042e0003Author: Maxi Quoß <maxi@quoss.org> Date: Sun Jan 29 14:58:12 2023 +0100 workflow: remove v from version commitdd4bc6c1e7Author: Maxi Quoß <maxi@quoss.org> Date: Sun Jan 29 14:54:19 2023 +0100 workflow: fix url commit5ee9b43affAuthor: Maxi Quoß <maxi@quoss.org> Date: Sun Jan 29 14:49:08 2023 +0100 workflow: remove v commit9d598b4c09Author: Maxi Quoß <maxi@quoss.org> Date: Sun Jan 29 14:46:01 2023 +0100 event tag
This commit is contained in:
7
.github/workflows/deploy.yml
vendored
7
.github/workflows/deploy.yml
vendored
@@ -3,7 +3,7 @@ name: Deploy release
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "v3.*.*"
|
||||
- "3.*.*"
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
@@ -60,10 +60,11 @@ jobs:
|
||||
uses: docker/metadata-action@v4
|
||||
with:
|
||||
images: |
|
||||
name/app
|
||||
ghcr.io/seriousm4x/UpSnap
|
||||
tags: |
|
||||
type=ref,event=push tag
|
||||
type=ref,event=tag
|
||||
type=semver,pattern={{version}}
|
||||
type=semver,pattern={{major}}
|
||||
type=semver,pattern={{major}}.{{minor}}
|
||||
|
||||
# qemu
|
||||
|
||||
@@ -5,13 +5,14 @@ ARG TARGETVARIANT
|
||||
ARG VERSION
|
||||
ENV BUILDX_ARCH="${TARGETOS:-linux}_${TARGETARCH:-amd64}${TARGETVARIANT}"
|
||||
WORKDIR /app
|
||||
RUN wget https://github.com/seriousm4x/upsnap/releases/download/v${VERSION}/upsnap_${VERSION}_${BUILDX_ARCH}.zip &&\
|
||||
unzip upsnap_${VERSION}_${BUILDX_ARCH}.zip &&\
|
||||
chmod +x /upsnap
|
||||
RUN wget https://github.com/seriousm4x/UpSnap/releases/download/${VERSION}/UpSnap_${VERSION}_${BUILDX_ARCH}.zip &&\
|
||||
unzip UpSnap_${VERSION}_${BUILDX_ARCH}.zip &&\
|
||||
rm -f UpSnap_${VERSION}_${BUILDX_ARCH}.zip &&\
|
||||
chmod +x upsnap
|
||||
|
||||
FROM alpine:3
|
||||
RUN apk update &&\
|
||||
apk add --no-cache ca-certificates nmap samba-common-tools &&\
|
||||
apk add --no-cache tzdata ca-certificates nmap samba-common-tools &&\
|
||||
rm -rf /var/cache/apk/*
|
||||
WORKDIR /app
|
||||
COPY --from=downloader /app/upsnap upsnap
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
release:
|
||||
draft: true
|
||||
# draft: true
|
||||
prerelease: auto
|
||||
before:
|
||||
hooks:
|
||||
|
||||
@@ -1,11 +1,18 @@
|
||||
version: "3"
|
||||
services:
|
||||
upsnap:
|
||||
image: ghcr.io/seriousm4x/UpSnap
|
||||
image: ghcr.io/seriousm4x/upsnap:3
|
||||
network_mode: host
|
||||
command: ["./upsnap", "serve", "--http", "0.0.0.0:8090"]
|
||||
volumes:
|
||||
- ./data:/app/pb_data
|
||||
healthcheck:
|
||||
test: wget --no-verbose --tries=1 --spider http://localhost:8090/api/health || exit 1
|
||||
interval: 1m
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
# environment:
|
||||
# - TZ=Europe/Berlin
|
||||
# - UPSNAP_INTERVAL=@every 10s
|
||||
# - UPSNAP_SCAN_RANGE=192.168.1.0/24
|
||||
# - UPSNAP_WEBSITE_TITLE=Custom name
|
||||
# command: ["./upsnap", "serve", "--http", "0.0.0.0:8090"]
|
||||
|
||||
Reference in New Issue
Block a user