forked from vieter-v/vieter
				
			Some ci config changes
							parent
							
								
									2663cf3dae
								
							
						
					
					
						commit
						95ae66a1cd
					
				| 
						 | 
					@ -1,11 +1,20 @@
 | 
				
			||||||
 | 
					# pipeline:
 | 
				
			||||||
 | 
					#   lint:
 | 
				
			||||||
 | 
					#     image: 'chewingbever/vlang:latest'
 | 
				
			||||||
 | 
					#     commands:
 | 
				
			||||||
 | 
					#       - v fmt -verify vieter
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#   build:
 | 
				
			||||||
 | 
					#     image: 'chewingbever/vlang:latest'
 | 
				
			||||||
 | 
					#     commands:
 | 
				
			||||||
 | 
					#       - v vieter
 | 
				
			||||||
pipeline:
 | 
					pipeline:
 | 
				
			||||||
  lint:
 | 
					  publish:
 | 
				
			||||||
    image: 'chewingbever/vlang:latest'
 | 
					    image: plugins/docker
 | 
				
			||||||
    commands:
 | 
					    secrets: [ docker_username, docker_password ]
 | 
				
			||||||
      - v fmt -verify vieter
 | 
					    settings:
 | 
				
			||||||
 | 
					      repo: chewingbever/vieter
 | 
				
			||||||
  build:
 | 
					      tag: ${CI_COMMIT_TAG}
 | 
				
			||||||
    image: 'chewingbever/vlang:latest'
 | 
					    when:
 | 
				
			||||||
    commands:
 | 
					      event: tag
 | 
				
			||||||
      - v vieter
 | 
					      branch: main
 | 
				
			||||||
 | 
					 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -10,7 +10,7 @@ const port = 8000
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const buf_size = 1_000_000
 | 
					const buf_size = 1_000_000
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const db_name = 'pieter.db.tar.gz'
 | 
					const db_name = 'pieter.db'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
struct App {
 | 
					struct App {
 | 
				
			||||||
	web.Context
 | 
						web.Context
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -268,7 +268,7 @@ pub fn (mut ctx Context) file(f_path string) Result {
 | 
				
			||||||
		return ctx.not_found()
 | 
							return ctx.not_found()
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	ext := os.file_ext(f_path)
 | 
						// ext := os.file_ext(f_path)
 | 
				
			||||||
	// data := os.read_file(f_path) or {
 | 
						// data := os.read_file(f_path) or {
 | 
				
			||||||
	// 	eprint(err.msg)
 | 
						// 	eprint(err.msg)
 | 
				
			||||||
	// 	ctx.server_error(500)
 | 
						// 	ctx.server_error(500)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue