sparse-intern-71089
05/04/2023, 12:47 PMquick-king-51158
05/04/2023, 12:50 PMpolite-sandwich-68547
05/04/2023, 1:13 PMpolite-sandwich-68547
05/04/2023, 1:14 PM[resource plugin aws-4.38.1] installing
[resource plugin aws-5.38.0] installing
quick-king-51158
05/04/2023, 1:14 PMlimited-rainbow-51650
05/04/2023, 2:07 PMpolite-sandwich-68547
05/04/2023, 2:09 PMpolite-sandwich-68547
05/04/2023, 2:10 PMlimited-rainbow-51650
05/04/2023, 2:10 PMPULUMI_HOME
to configure where these plugin binaries are downloaded on your CI runners. (https://www.pulumi.com/docs/reference/cli/environment-variables/)
If you combine this with the caching behaviour your CI system might offer, you can improve the speed of subsequent runs. For Gitlab, I think this is the page to look at in their docs:
https://docs.gitlab.com/ee/ci/caching/polite-sandwich-68547
05/04/2023, 2:10 PMdeploy:
interruptible: true
needs:
- build
stage: deploy
image: pulumi/pulumi-go
before_script:
- mkdir -p ${CI_PROJECT_DIR}/.cache
- export GOPATH=${CI_PROJECT_DIR}/.cache
- apt update && apt install -y make && apt clean
cache:
policy: pull-push
when: on_success
key: build
paths:
- .cache
- /root/.pulumi/plugins
script:
- make deploy
polite-sandwich-68547
05/04/2023, 2:11 PMpolite-sandwich-68547
05/04/2023, 2:12 PM- mkdir -p ${CI_PROJECT_DIR}/.pulumi
- export PULUMI_HOME=${CI_PROJECT_DIR}/.pulumi
then I'll cache it
cache:
policy: pull-push
when: on_success
key: build
paths:
- .cache
- .pulumi/plugins
polite-sandwich-68547
05/04/2023, 2:19 PMSaving cache for successful job
Creating cache build-protected...
.cache: found 14914 matching artifact files and directories
.pulumi/plugins: found 19 matching artifact files and directories
works guys!polite-sandwich-68547
05/04/2023, 2:19 PM