Skip to content

Commit

Permalink
added the staging and prod env to the delivery pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
fabioformosa committed Jul 27, 2024
1 parent 9a0789c commit 9d2a01e
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 3 deletions.
2 changes: 0 additions & 2 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ steps:
# Build and push images
sed -i s/_IMAGE_TAG_POLICY/$SHORT_SHA/g skaffold.yaml
sed -i s/_HELM_APP_VERSION/$SHORT_SHA/g ./quartz-manager-parent/quartz-manager-web-showcase/helm/Chart.yaml
sed -i s/_HELM_NAMESPACE/quartzmanager-dev/g skaffold.yaml
skaffold build --file-output=/workspace/artifacts.json \
--default-repo=${_REGION}-docker.pkg.dev/quartz-manager-test/quartz-manager/quartz-manager-standalone \
--push=true
Expand All @@ -25,7 +24,6 @@ steps:
- -c
- |
sed -i s/_HELM_APP_VERSION/$SHORT_SHA/g ./quartz-manager-parent/quartz-manager-web-showcase/helm/Chart.yaml
sed -i s/_HELM_NAMESPACE/quartzmanager-dev/g skaffold.yaml
gcloud config set deploy/region ${_REGION}
gcloud deploy apply --file ./quartz-manager-parent/quartz-manager-web-showcase/deploy/pipeline.yaml
gcloud deploy apply --file ./quartz-manager-parent/quartz-manager-web-showcase/deploy/dev.yaml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,9 @@ serialPipeline:
- targetId: dev
profiles:
- dev
- targetId: staging
profiles:
- staging
- targetId: prod
profiles:
- prod
10 changes: 10 additions & 0 deletions quartz-manager-parent/quartz-manager-web-showcase/deploy/prod.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: deploy.cloud.google.com/v1
kind: Target
metadata:
name: prod
annotations: {}
labels: {}
description: prod
requireApproval: true
gke:
cluster: projects/quartz-manager-test/locations/europe-west8-a/clusters/gke-cluster
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: deploy.cloud.google.com/v1
kind: Target
metadata:
name: staging
annotations: {}
labels: {}
description: staging
requireApproval: true
gke:
cluster: projects/quartz-manager-test/locations/europe-west8-a/clusters/gke-cluster
26 changes: 25 additions & 1 deletion skaffold.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,33 @@ profiles:
releases:
- name: quartzmanager-standalone
createNamespace: true
namespace: _HELM_NAMESPACE
namespace: quartzmanager-dev
chartPath: quartz-manager-parent/quartz-manager-web-showcase/helm
# valuesFiles:
# - helm/envs/dev/values.yaml
setValueTemplates:
image.tag: "_IMAGE_TAG_POLICY"
- name: staging
deploy:
helm:
releases:
- name: quartzmanager-standalone
createNamespace: true
namespace: quartzmanager-staging
chartPath: quartz-manager-parent/quartz-manager-web-showcase/helm
# valuesFiles:
# - helm/envs/dev/values.yaml
setValueTemplates:
image.tag: "_IMAGE_TAG_POLICY"
- name: prod
deploy:
helm:
releases:
- name: quartzmanager-standalone
createNamespace: true
namespace: quartzmanager-prod
chartPath: quartz-manager-parent/quartz-manager-web-showcase/helm
# valuesFiles:
# - helm/envs/dev/values.yaml
setValueTemplates:
image.tag: "_IMAGE_TAG_POLICY"

0 comments on commit 9d2a01e

Please sign in to comment.