added the staging and prod env to the delivery pipeline

This commit is contained in:
Fabio Formosa
2024-07-27 17:33:31 +02:00
parent 9a0789cab0
commit 9d2a01ebbe
5 changed files with 51 additions and 3 deletions

View File

@@ -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
@@ -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

View File

@@ -10,3 +10,9 @@ serialPipeline:
- targetId: dev
profiles:
- dev
- targetId: staging
profiles:
- staging
- targetId: prod
profiles:
- prod

View File

@@ -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

View File

@@ -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

View File

@@ -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"