File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,12 +12,27 @@ import (
1212 "github.com/containifyci/engine-ci/protos2"
1313)
1414
15+ func registryAuth () map [string ]* protos2.ContainerRegistry {
16+ return map [string ]* protos2.ContainerRegistry {
17+ "docker.io" : {
18+ Username : "env:DOCKER_USER" ,
19+ Password : "env:DOCKER_TOKEN" ,
20+ },
21+ "ghcr.io" : {
22+ Username : "USERNAME" ,
23+ Password : "env:GHCR_TOKEN" ,
24+ },
25+ }
26+ }
27+
1528func main () {
1629 os .Chdir ("../" )
1730
1831 // Build Group 0
1932 enginepython := build .NewPythonServiceBuild ("engine-python" )
2033 enginepython .Folder = "."
34+ enginepython .File = "engine_python"
35+ enginepython .Registries = registryAuth ()
2136
2237 //TODO: adjust the registries to your own container registry
2338 build .BuildGroups (
Load diff This file was deleted.
Original file line number Diff line number Diff line change 11[project ]
2- name = " engine-python "
2+ name = " engine_python "
33version = " 0.1.0"
44description = " Add your description here"
55readme = " README.md"
66requires-python = " >=3.13"
77dependencies = [
8- " fastapi>=0.119.0" ,
8+ " fastapi[standard] >=0.119.0" ,
99 " uvicorn>=0.37.0" ,
1010]
11+
12+ [tool .setuptools ]
13+ py-modules = [" engine_python" ]
14+
15+ [project .scripts ]
16+ engine-python = " engine_python:main"
You can’t perform that action at this time.
0 commit comments