@@ -21,60 +21,25 @@ includes:
2121 # dev-notes/build-warts.md#always-set-dir-relative-to-current-task-file
2222 dir : ./taskfiles
2323
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-
3724tasks :
3825
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.
5328 cmds :
29+ - which task
5430 - |
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 --sort=none
6132
62- builder-cleanup :
63- summary : cleans up the forestrie build container
33+ environment :
34+ desc : Show environment and location of tools executables.
6435 cmds :
65- - docker rm -f {{.BUILD_CONTAINER}}
36+ - env | sort
37+ - which go
6638
6739 # ## -------------------------
6840 # Primary workflow tasks
6941 # ## -------------------------
7042 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 :
7843 desc : |
7944 do everything necessary after clone (or rebase) (faster as it RUNS ON NATIVE HOST)
8045
@@ -105,4 +70,4 @@ tasks:
10570 generate :
10671 desc : generates all the artifacts we need pre-build
10772 cmds :
108- - task : apis:generate
73+ - task : apis:generate
0 commit comments