Add basic chart
This commit is contained in:
parent
db0dd4df3d
commit
0b6aa7cb56
|
@ -4,7 +4,7 @@ tmp_dir = "tmp"
|
|||
|
||||
[build]
|
||||
args_bin = ["-l", "0.0.0.0"]
|
||||
bin = "./ytdl-web"
|
||||
bin = "./out/ytdl-web"
|
||||
cmd = "task build"
|
||||
delay = 1000
|
||||
exclude_dir = ["assets", "tmp", "vendor", "testdata"]
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
# Ignore binary
|
||||
ytdl-web
|
||||
# Output directory
|
||||
/out/
|
||||
|
||||
# Ignore tmp dir
|
||||
/tmp/
|
||||
# Air temp directory
|
||||
/tmp/
|
||||
|
||||
# Deployment directory
|
||||
.deploy
|
|
@ -16,6 +16,11 @@ lint:
|
|||
- prettier@2.8.7
|
||||
- taplo@0.7.0
|
||||
- yamllint@1.30.0
|
||||
ignore:
|
||||
- linters:
|
||||
- yamllint
|
||||
paths:
|
||||
- charts
|
||||
runtimes:
|
||||
enabled:
|
||||
- go@1.19.5
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
version: "3"
|
||||
|
||||
vars:
|
||||
OUT: ./out/ytdl-web
|
||||
VERSION: 1.0.0
|
||||
VERSION_PKG: go.fifitido.net/ytdl-web/version
|
||||
BUILD:
|
||||
|
@ -9,5 +10,5 @@ vars:
|
|||
tasks:
|
||||
deps: go mod download
|
||||
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
|
||||
|
|
|
@ -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