Some ci config changes

main
Jef Roosens 2022-01-12 16:31:27 +01:00
parent 2663cf3dae
commit 95ae66a1cd
Signed by untrusted user: Jef Roosens
GPG Key ID: 955C0660072F691F
3 changed files with 21 additions and 12 deletions

View File

@ -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

View File

@ -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

View File

@ -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)