clever-cartoon-41433
03/16/2021, 11:19 PMlittle-cartoon-10569
03/16/2021, 11:23 PMclever-cartoon-41433
03/16/2021, 11:25 PMlittle-cartoon-10569
03/16/2021, 11:30 PMclever-cartoon-41433
03/16/2021, 11:40 PMexaminer_src:
stage: build_containers
image:
name: <http://gcr.io/kaniko-project/executor:debug-edge|gcr.io/kaniko-project/executor:debug-edge>
entrypoint: [""]
variables:
WORKDIR: "$CI_PROJECT_DIR/src/backend/examiner"
artifacts:
paths:
- src/pulumi/digests
script:
- mkdir -p /kaniko/.docker
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- /kaniko/executor --cache=true --digest-file=src/pulumi/digests/examiner --context $WORKDIR --dockerfile $WORKDIR/Dockerfile --cache-repo $CI_REGISTRY/${CI_PROJECT_PATH}/cache --destination $CI_REGISTRY/${CI_PROJECT_PATH}/${CI_COMMIT_REF_NAME}/examiner:latest
rules:
- changes:
- src/backend/examiner/**/*
It's possible that gitlab has some feature that I don't know about that has solved this, or that they have some templating/directory-enumeration system I can use. But if Gitlab gave me the kind of interface for writing these .yml files as Pulumi gave me for creating infrastructure, I wouldn't even have to find out about it and Gitlab wouldn't have to build it. I'd just write the code.little-cartoon-10569
03/16/2021, 11:44 PMdocker-compose build
.colossal-australia-65039
03/17/2021, 12:09 AMlittle-cartoon-10569
03/17/2021, 12:13 AMwhite-balloon-205
03/17/2021, 12:48 AMlittle-cartoon-10569
03/17/2021, 12:55 AMclever-cartoon-41433
03/17/2021, 3:04 AMlittle-cartoon-10569
03/17/2021, 3:09 AMkubectl exec
clever-cartoon-41433
03/17/2021, 3:31 AM