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