@@ -21,60 +21,25 @@ includes:
21
21
# dev-notes/build-warts.md#always-set-dir-relative-to-current-task-file
22
22
dir : ./taskfiles
23
23
24
- vars :
25
- ACR : rkvstdev.azurecr.io
26
- # Default to the stage master-latest builder image
27
- # Note: the CI tags builder images with the build number of the avid-builder pipeline run,
28
- # i.e. 20220607.10
29
- # For local builder development build run `task builder` in the avid-builder git repo to
30
- # build a new local builder image, then run these tasks like
31
- # task generate BUILDER_ACR=rkvstdev.azurecr.io BUILDER_IMAGE_TAG=dev-$USER
32
- BUILDER_ACR : rkvststage.azurecr.io
33
- BUILDER_IMAGE_TAG : master-latest
34
-
35
- BUILD_CONTAINER : go-datatrails-common-api-builder
36
-
37
24
tasks :
38
25
39
- # ## -------------------------
40
- # Docker container tasks
41
- # ## -------------------------
42
-
43
- builder-start :
44
- summary : |
45
- Creates the build container for go-datatrails-common-api
46
-
47
- Many tasks docker exec into this container so DO NOT ADD --rm.
48
-
49
- Use defer to cleanup the docker container in top level workflow tasks
50
- which create the builder container
51
- vars :
52
- BUILDER_IMAGE : ' {{.BUILDER_ACR}}/avid-builder:{{.BUILDER_IMAGE_TAG}}'
26
+ default :
27
+ desc : Default task lists all available tasks to run.
53
28
cmds :
29
+ - which task
54
30
- |
55
- docker run \
56
- --env CONCURRENCY={{.SKAFFOLD_CONCURRENCY | default 2}} \
57
- --name {{.BUILD_CONTAINER}} \
58
- -dt -u $(id -u):$(id -g) \
59
- --mount type=bind,src=$(pwd),dst=/avid -w /avid \
60
- {{.BUILDER_IMAGE}}
31
+ task --list
61
32
62
- builder-cleanup :
63
- summary : cleans up the forestrie build container
33
+ environment :
34
+ desc : Show environment and location of tools executables.
64
35
cmds :
65
- - docker rm -f {{.BUILD_CONTAINER}}
36
+ - env | sort
37
+ - which go
66
38
67
39
# ## -------------------------
68
40
# Primary workflow tasks
69
41
# ## -------------------------
70
42
all :
71
- desc : " do everything necessary after clone (or rebase) in the builder"
72
- cmds :
73
- - task : builder-start
74
- - defer : {task: builder-cleanup}
75
- - docker exec -t {{.BUILD_CONTAINER}} task local-all
76
-
77
- local-all :
78
43
desc : |
79
44
do everything necessary after clone (or rebase) (faster as it RUNS ON NATIVE HOST)
80
45
@@ -105,4 +70,4 @@ tasks:
105
70
generate :
106
71
desc : generates all the artifacts we need pre-build
107
72
cmds :
108
- - task : apis:generate
73
+ - task : apis:generate
0 commit comments