Some ci config changes

pull/14/head
Jef Roosens 2022-01-12 16:31:27 +01:00
parent 2663cf3dae
commit 95ae66a1cd
Signed by: 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: 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

View File

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

View File

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