Commit 4d5e8f6 1 parent 8ba33f2 commit 4d5e8f6 Copy full SHA for 4d5e8f6
File tree 4 files changed +56
-1
lines changed
quartz-manager-parent/quartz-manager-web-showcase/deploy
4 files changed +56
-1
lines changed Original file line number Diff line number Diff line change @@ -14,10 +14,31 @@ steps:
14
14
sed -i s/_HELM_CHART_VERSION/0.0.0/g ./quartz-manager-parent/quartz-manager-web-showcase/helm/Chart.yaml
15
15
sed -i s/_HELM_APP_VERSION/$SHORT_SHA/g ./quartz-manager-parent/quartz-manager-web-showcase/helm/Chart.yaml
16
16
sed -i s/_HELM_CHART_NAME/quartzmanager-standalone/g skaffold.yaml
17
- sed -i s/_HELM_NAMESPACE/quartzmanager/g skaffold.yaml
17
+ sed -i s/_HELM_NAMESPACE/quartzmanager-dev /g skaffold.yaml
18
18
skaffold build --file-output=/workspace/artifacts.json \
19
19
--default-repo=${_REGION}-docker.pkg.dev/quartz-manager-test/quartz-manager/quartz-manager-standalone \
20
20
--push=true
21
21
22
+ # Step 2: deploy
23
+ - name : ' google/cloud-sdk:latest'
24
+ entrypoint : ' sh'
25
+ args :
26
+ - -xe
27
+ - -c
28
+ - |
29
+ gcloud config set deploy/region ${_REGION}
30
+ gcloud deploy apply --file deploy/pipeline.yaml
31
+ gcloud deploy apply --file deploy/dev.yaml
32
+ gcloud deploy releases create rel-${SHORT_SHA} \
33
+ --delivery-pipeline quartz-manager-standalone-pipeline \
34
+ --description "$(git log -1 --pretty='%s')" \
35
+ --build-artifacts /workspace/artifacts.json \
36
+ --annotations "commit_ui=https://source.cloud.google.com/$PROJECT_ID/quartz-manager-standalone/+/$COMMIT_SHA"
37
+ artifacts :
38
+ objects :
39
+ location : ' gs://$PROJECT_ID-gcdeploy-artifacts/'
40
+ paths :
41
+ - ' /workspace/artifacts.json'
42
+
22
43
options :
23
44
logging : CLOUD_LOGGING_ONLY
Original file line number Diff line number Diff line change
1
+ apiVersion : deploy.cloud.google.com/v1
2
+ kind : Target
3
+ metadata :
4
+ name : dev
5
+ annotations : {}
6
+ labels : {}
7
+ description : dev
8
+ gke :
9
+ cluster : projects/quartz-manager-test/locations/europe-west8/clusters/gke-cluster
Original file line number Diff line number Diff line change
1
+ apiVersion : deploy.cloud.google.com/v1
2
+ kind : DeliveryPipeline
3
+ metadata :
4
+ name : quartz-manager-pipeline
5
+ labels :
6
+ app : quartz-manager-standalone
7
+ description : quartz-manager-standalone delivery pipeline
8
+ serialPipeline :
9
+ stages :
10
+ - targetId : dev
11
+ profiles :
12
+ - dev
Original file line number Diff line number Diff line change 7
7
artifacts :
8
8
- image : quartz-manager-standalone
9
9
context : ./
10
+ profiles :
11
+ - name : dev
12
+ deploy :
13
+ helm :
14
+ releases :
15
+ - name : _HELM_CHART_NAME
16
+ createNamespace : true
17
+ namespace : _HELM_NAMESPACE
18
+ chartPath : quartz-manager-parent/quartz-manager-web-showcase/helm/hello-world
19
+ # valuesFiles:
20
+ # - helm/envs/dev/values.yaml
21
+ setValueTemplates :
22
+ image.tag : " _IMAGE_TAG_POLICY"
You can’t perform that action at this time.
0 commit comments