-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPulumi.yaml
63 lines (60 loc) · 1.61 KB
/
Pulumi.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: dbt_jinjat_integration_tests
runtime: yaml
variables:
noauthIAMPolicy:
fn::invoke:
function: gcp:organizations:getIAMPolicy
arguments:
bindings:
- role: roles/run.invoker
members:
- allUsers
resources:
jinjat_docker_repo:
type: gcp:artifactregistry:Repository
properties:
description: example docker repository
format: DOCKER
location: us-central1
project: jinjat-demo
repositoryId: jinjat-repository
image:
type: docker:Image
options:
version: v4.0.0
properties:
build:
args:
platform: linux/amd64
context: .
platform: "linux/amd64"
dockerfile: test.Dockerfile
# it's buggy, use sha instead of latest
imageName: "us-central1-docker.pkg.dev/jinjat-demo/jinjat-repository/dbt_jinjat_integration_tests:latest"
service:
type: gcp:cloudrunv2:Service
properties:
ingress: INGRESS_TRAFFIC_ALL
location: us-central1
name: dbtjinjatintegrationtests
template:
containers:
- image: ${image.baseImageName}
name: jinjat-server
ports:
- containerPort: 8581
envs:
- name: HOME
value: /root
sessionAffinity: true
noauthIamPolicy:
type: gcp:cloudrun:IamPolicy
properties:
location: ${service.location}
project: ${service.project}
service: ${service.name}
policyData: ${noauthIAMPolicy.policyData}
outputs:
jinjat_docker_repo: ${jinjat_docker_repo}
image: ${image}
service: ${service}