Created
September 24, 2021 03:23
-
-
Save alevz257/825c1e3df9fcffa7e2f057b1e11c2f96 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: deploy.cloud.google.com/v1beta1 | |
kind: DeliveryPipeline | |
metadata: | |
name: demo-clouddeploy | |
description: main application pipeline | |
serialPipeline: | |
stages: | |
- targetId: devtarget | |
profiles: | |
- dev | |
- targetId: prodtarget | |
profiles: | |
- prod | |
--- | |
apiVersion: deploy.cloud.google.com/v1beta1 | |
kind: Target | |
metadata: | |
name: devtarget | |
description: development namespace | |
gke: | |
cluster: projects/<project-name>/locations/<zones>/clusters/<dev cluster name> | |
--- | |
apiVersion: deploy.cloud.google.com/v1beta1 | |
kind: Target | |
metadata: | |
name: prodtarget | |
description: production namespace | |
gke: | |
cluster: projects/<project-name>/locations/<zones>/clusters/<prod cluster name> | |
requireApproval: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: skaffold/v2beta16 | |
kind: Config | |
profiles: | |
- name: dev | |
deploy: | |
kustomize: | |
paths: | |
- env/dev | |
- name: prod | |
deploy: | |
kustomize: | |
paths: | |
- env/prod |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment