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
# app.yaml | |
env: standard | |
runtime: nodejs10 | |
service: app-engine-react-demo | |
handlers: | |
- url: /static | |
static_dir: build/static |
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
#!/usr/bin/env bash | |
source .env | |
# export PROJECT_ID=<from .env> | |
# export AUTH_NETWORK=<from .env> | |
export GCP_REGION=us-central1 | |
export GCP_ZONE=us-central1-b | |
export CLUSTER_VERSION="1.16.13-gke.1" |
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: argoproj.io/v1alpha1 | |
kind: Application | |
metadata: | |
name: kong | |
namespace: argocd | |
finalizers: | |
- resources-finalizer.argocd.argoproj.io | |
spec: | |
destination: | |
namespace: argocd |
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
source .env | |
# export PROJECT_ID=<from .env> | |
# export AUTH_NETWORK=<from .env> | |
export DNS_ZONE_NAME=msparr-com | |
# create dns zone (you will need to point nameservers to Cloud DNS) | |
gcloud beta dns --project=$PROJECT_ID managed-zones create $DNS_ZONE_NAME \ | |
--description= \ | |
--dns-name=msparr.com. |
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
steps: | |
# Build image and push to GCR | |
- name: 'gcr.io/cloud-builders/docker' | |
id: Build | |
args: | |
- 'build' | |
- '-t' | |
- 'gcr.io/$PROJECT_ID/$_SERVICE_NAME:$SHORT_SHA' | |
- '.' | |
# TODO: look into [images] |
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
steps: | |
# Build image and push to GCR | |
- name: 'gcr.io/cloud-builders/docker' | |
id: Build | |
args: | |
- 'build' | |
- '-t' | |
- 'gcr.io/$PROJECT_ID/$_SERVICE_NAME:v$_PR_NUMBER' | |
- '.' | |
# TODO: look into [images] |
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
steps: | |
# Build image and push to GCR | |
- name: 'gcr.io/cloud-builders/docker' | |
id: Build | |
args: | |
- 'build' | |
- '-t' | |
- 'gcr.io/$PROJECT_ID/$_SERVICE_NAME:$SHORT_SHA' | |
- '.' | |
# TODO: look into [images] |
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: kustomize.config.k8s.io/v1beta1 | |
kind: Kustomization | |
bases: | |
- ../../base | |
commonLabels: | |
env: review | |
patchesStrategicMerge: |
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: extensions/v1beta1 # networking.k8s.io/v1beta1 | |
kind: Ingress | |
metadata: | |
name: demo-app-msparr-com | |
spec: | |
# tls: | |
# - secretName: tls-demo-app-msparr-com | |
# hosts: | |
# - demo-app.msparr.com |
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
# dynamically create DNS CNAME entry for review app | |
- name: 'gcr.io/cloud-builders/gcloud' | |
entrypoint: 'bash' | |
args: | |
- '-c' | |
- | | |
gcloud dns --project=devops-pipeline-demo record-sets transaction start --zone=msparr-com | |
gcloud dns --project=devops-pipeline-demo record-sets transaction add kong-proxy.msparr.com. \ | |
--name=demo-app-review-$_PR_NUMBER.msparr.com. \ | |
--ttl=300 \ |