split hosting and functions pipelines

This commit is contained in:
Shams mosowi
2020-03-26 17:57:45 +08:00
parent 30e021ef5f
commit eec8dc3ec5
3 changed files with 28 additions and 28 deletions

View File

@@ -1,5 +1,5 @@
{
"projects": {
"default":"antler-vc"
}
}

View File

@@ -20,30 +20,3 @@ steps:
entrypoint: yarn
args: ["deploy"]
dir: "www"
- name: gcr.io/cloud-builders/gcloud
args:
- kms
- decrypt
- --ciphertext-file=cloud_functions/functions/.env.enc
- --plaintext-file=cloud_functions/functions/.env
- --location=global
- --keyring=antler-vc
- --key=cloudbuild-env
- name: gcr.io/cloud-builders/gcloud
args:
- kms
- decrypt
- --ciphertext-file=cloud_functions/functions/firebase-credentials.json.enc
- --plaintext-file=cloud_functions/functions/firebase-credentials.json
- --location=global
- --keyring=antler-vc
- --key=cloudbuild-env
- name: node:10.15.1
entrypoint: yarn
args: ["install"]
dir: "cloud_functions/functions"
- name: node:10.15.1
entrypoint: yarn
args: ["deploy"]
dir: "cloud_functions/functions"

27
cloudbuildfunctions.yaml Normal file
View File

@@ -0,0 +1,27 @@
steps:
- name: gcr.io/cloud-builders/gcloud
args:
- kms
- decrypt
- --ciphertext-file=cloud_functions/functions/.env.enc
- --plaintext-file=cloud_functions/functions/.env
- --location=global
- --keyring=antler-vc
- --key=cloudbuild-env
- name: gcr.io/cloud-builders/gcloud
args:
- kms
- decrypt
- --ciphertext-file=cloud_functions/functions/firebase-credentials.json.enc
- --plaintext-file=cloud_functions/functions/firebase-credentials.json
- --location=global
- --keyring=antler-vc
- --key=cloudbuild-env
- name: node:10.15.1
entrypoint: yarn
args: ["install"]
dir: "cloud_functions/functions"
- name: node:10.15.1
entrypoint: yarn
args: ["deploy"]
dir: "cloud_functions/functions"