Add trunk configs and fix lint issues
This commit is contained in:
		
							parent
							
								
									43c5db744e
								
							
						
					
					
						commit
						177d8d7e55
					
				| 
						 | 
				
			
			@ -0,0 +1,7 @@
 | 
			
		|||
*out
 | 
			
		||||
*logs
 | 
			
		||||
*actions
 | 
			
		||||
*notifications
 | 
			
		||||
plugins
 | 
			
		||||
user_trunk.yaml
 | 
			
		||||
user.yaml
 | 
			
		||||
| 
						 | 
				
			
			@ -0,0 +1,4 @@
 | 
			
		|||
# Following source doesn't work in most setups
 | 
			
		||||
ignored:
 | 
			
		||||
  - SC1090
 | 
			
		||||
  - SC1091
 | 
			
		||||
| 
						 | 
				
			
			@ -0,0 +1,10 @@
 | 
			
		|||
rules:
 | 
			
		||||
  quoted-strings:
 | 
			
		||||
    required: only-when-needed
 | 
			
		||||
    extra-allowed: ["{|}"]
 | 
			
		||||
  empty-values:
 | 
			
		||||
    forbid-in-block-mappings: true
 | 
			
		||||
    forbid-in-flow-mappings: true
 | 
			
		||||
  key-duplicates: {}
 | 
			
		||||
  octal-values:
 | 
			
		||||
    forbid-implicit-octal: true
 | 
			
		||||
| 
						 | 
				
			
			@ -0,0 +1,23 @@
 | 
			
		|||
version: 0.1
 | 
			
		||||
cli:
 | 
			
		||||
  version: 1.7.0
 | 
			
		||||
plugins:
 | 
			
		||||
  sources:
 | 
			
		||||
    - id: trunk
 | 
			
		||||
      ref: v0.0.15
 | 
			
		||||
      uri: https://github.com/trunk-io/plugins
 | 
			
		||||
lint:
 | 
			
		||||
  enabled:
 | 
			
		||||
    - git-diff-check
 | 
			
		||||
    - gitleaks@8.16.2
 | 
			
		||||
    - gofmt@1.19.3
 | 
			
		||||
    - golangci-lint@1.52.2
 | 
			
		||||
    - hadolint@2.12.0
 | 
			
		||||
    - prettier@2.8.7
 | 
			
		||||
    - taplo@0.7.0
 | 
			
		||||
    - yamllint@1.30.0
 | 
			
		||||
runtimes:
 | 
			
		||||
  enabled:
 | 
			
		||||
    - go@1.19.5
 | 
			
		||||
    - node@18.12.1
 | 
			
		||||
    - python@3.10.8
 | 
			
		||||
| 
						 | 
				
			
			@ -2,18 +2,17 @@ FROM golang:1.20-alpine3.17 as builder
 | 
			
		|||
 | 
			
		||||
WORKDIR /usr/src/ytdl-web
 | 
			
		||||
 | 
			
		||||
ADD . .
 | 
			
		||||
COPY . .
 | 
			
		||||
 | 
			
		||||
RUN go mod download
 | 
			
		||||
 | 
			
		||||
RUN go build -o ytdl-web .
 | 
			
		||||
RUN go mod download \
 | 
			
		||||
    && go build -o ytdl-web .
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
FROM alpine:3.17
 | 
			
		||||
 | 
			
		||||
WORKDIR /app
 | 
			
		||||
 | 
			
		||||
RUN apk add --no-cache yt-dlp ffmpeg
 | 
			
		||||
RUN apk add --no-cache yt-dlp==2023.03.04 ffmpeg==5.1.3
 | 
			
		||||
 | 
			
		||||
COPY --from=builder /usr/src/ytdl-web/ytdl-web ./ytdl-web
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue