Add basic chart
This commit is contained in:
parent
db0dd4df3d
commit
0b6aa7cb56
|
@ -4,7 +4,7 @@ tmp_dir = "tmp"
|
||||||
|
|
||||||
[build]
|
[build]
|
||||||
args_bin = ["-l", "0.0.0.0"]
|
args_bin = ["-l", "0.0.0.0"]
|
||||||
bin = "./ytdl-web"
|
bin = "./out/ytdl-web"
|
||||||
cmd = "task build"
|
cmd = "task build"
|
||||||
delay = 1000
|
delay = 1000
|
||||||
exclude_dir = ["assets", "tmp", "vendor", "testdata"]
|
exclude_dir = ["assets", "tmp", "vendor", "testdata"]
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
# Ignore binary
|
# Output directory
|
||||||
ytdl-web
|
/out/
|
||||||
|
|
||||||
# Ignore tmp dir
|
# Air temp directory
|
||||||
/tmp/
|
/tmp/
|
||||||
|
|
||||||
|
# Deployment directory
|
||||||
|
.deploy
|
|
@ -16,6 +16,11 @@ lint:
|
||||||
- prettier@2.8.7
|
- prettier@2.8.7
|
||||||
- taplo@0.7.0
|
- taplo@0.7.0
|
||||||
- yamllint@1.30.0
|
- yamllint@1.30.0
|
||||||
|
ignore:
|
||||||
|
- linters:
|
||||||
|
- yamllint
|
||||||
|
paths:
|
||||||
|
- charts
|
||||||
runtimes:
|
runtimes:
|
||||||
enabled:
|
enabled:
|
||||||
- go@1.19.5
|
- go@1.19.5
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
version: "3"
|
version: "3"
|
||||||
|
|
||||||
vars:
|
vars:
|
||||||
|
OUT: ./out/ytdl-web
|
||||||
VERSION: 1.0.0
|
VERSION: 1.0.0
|
||||||
VERSION_PKG: go.fifitido.net/ytdl-web/version
|
VERSION_PKG: go.fifitido.net/ytdl-web/version
|
||||||
BUILD:
|
BUILD:
|
||||||
|
@ -9,5 +10,5 @@ vars:
|
||||||
tasks:
|
tasks:
|
||||||
deps: go mod download
|
deps: go mod download
|
||||||
tidy: go mod tidy
|
tidy: go mod tidy
|
||||||
build: go build -ldflags="-X {{.VERSION_PKG}}.Version={{.VERSION}} -X {{.VERSION_PKG}}.Build={{.BUILD}}" -o ytdl-web .
|
build: go build -ldflags="-X {{.VERSION_PKG}}.Version={{.VERSION}} -X {{.VERSION_PKG}}.Build={{.BUILD}}" -o {{.OUT}} .
|
||||||
dev: air
|
dev: air
|
||||||
|
|
|
@ -0,0 +1,23 @@
|
||||||
|
# Patterns to ignore when building packages.
|
||||||
|
# This supports shell glob matching, relative path matching, and
|
||||||
|
# negation (prefixed with !). Only one pattern per line.
|
||||||
|
.DS_Store
|
||||||
|
# Common VCS dirs
|
||||||
|
.git/
|
||||||
|
.gitignore
|
||||||
|
.bzr/
|
||||||
|
.bzrignore
|
||||||
|
.hg/
|
||||||
|
.hgignore
|
||||||
|
.svn/
|
||||||
|
# Common backup files
|
||||||
|
*.swp
|
||||||
|
*.bak
|
||||||
|
*.tmp
|
||||||
|
*.orig
|
||||||
|
*~
|
||||||
|
# Various IDEs
|
||||||
|
.project
|
||||||
|
.idea/
|
||||||
|
*.tmproj
|
||||||
|
.vscode/
|
|
@ -0,0 +1,14 @@
|
||||||
|
apiVersion: v2
|
||||||
|
description: A web-based frontend for yt-dlp
|
||||||
|
name: ytdl-web
|
||||||
|
version: 1.0.0
|
||||||
|
kubeVersion: ">=1.22.0-0"
|
||||||
|
type: application
|
||||||
|
appVersion: 1.0.0
|
||||||
|
maintainers:
|
||||||
|
- name: fifitido
|
||||||
|
email: me@fifitido.net
|
||||||
|
dependencies:
|
||||||
|
- name: common
|
||||||
|
repository: https://bjw-s.github.io/helm-charts
|
||||||
|
version: 1.4.0
|
|
@ -0,0 +1,9 @@
|
||||||
|
{{- define "custom.custom.configuration.header" -}}
|
||||||
|
## Custom configuration
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{- define "custom.custom.configuration" -}}
|
||||||
|
{{ template "custom.custom.configuration.header" . }}
|
||||||
|
|
||||||
|
N/A
|
||||||
|
{{- end -}}
|
|
@ -0,0 +1,14 @@
|
||||||
|
---
|
||||||
|
{{- include "bjw-s.common.loader.init" . }}
|
||||||
|
|
||||||
|
{{- define "ytdlp-web.hardcodedValues" -}}
|
||||||
|
# Set the nameOverride based on the release name if no override has been set
|
||||||
|
{{ if not .Values.global.nameOverride }}
|
||||||
|
global:
|
||||||
|
nameOverride: "{{ .Release.Name }}"
|
||||||
|
{{ end }}
|
||||||
|
{{- end -}}
|
||||||
|
{{- $_ := mergeOverwrite .Values (include "ytdlp-web.hardcodedValues" . | fromYaml) -}}
|
||||||
|
|
||||||
|
{{/* Render the templates */}}
|
||||||
|
{{ include "bjw-s.common.loader.generate" . }}
|
|
@ -0,0 +1,29 @@
|
||||||
|
image:
|
||||||
|
repository: git.fifitido.net/apps/ytdl-web
|
||||||
|
pullPolicy: IfNotPresent
|
||||||
|
tag: 1.0.0
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
|
|
||||||
|
env:
|
||||||
|
YTDL_LISTEN: 0.0.0.0
|
||||||
|
YTDL_PORT: 80
|
||||||
|
# YTDL_BASEPATH: /example
|
||||||
|
|
||||||
|
service:
|
||||||
|
main:
|
||||||
|
ports:
|
||||||
|
http:
|
||||||
|
port: 80
|
||||||
|
|
||||||
|
ingress:
|
||||||
|
main:
|
||||||
|
enabled: false
|
||||||
|
hosts:
|
||||||
|
- host: ytdl-web.local
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
service:
|
||||||
|
port: http
|
Loading…
Reference in New Issue