forked from vieter-v/vieter
refactor: moved client code into own module
This commit is contained in:
parent
f42d3fd8b0
commit
407b226955
7 changed files with 110 additions and 91 deletions
|
|
@ -3,9 +3,9 @@ module build
|
|||
import docker
|
||||
import encoding.base64
|
||||
import time
|
||||
import git
|
||||
import os
|
||||
import db
|
||||
import client
|
||||
|
||||
const container_build_dir = '/build'
|
||||
|
||||
|
|
@ -126,7 +126,7 @@ fn build(conf Config) ? {
|
|||
build_arch := os.uname().machine
|
||||
|
||||
// We get the repos map from the Vieter instance
|
||||
repos := git.get_repos(conf.address, conf.api_key) ?
|
||||
repos := client.new(conf.address, conf.api_key).get_git_repos() ?
|
||||
|
||||
// We filter out any repos that aren't allowed to be built on this
|
||||
// architecture
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue