From 20848c0929b5f92ad92822269e27f317112ed1fc Mon Sep 17 00:00:00 2001 From: Shams mosowi Date: Thu, 2 Jul 2020 14:21:16 +0800 Subject: [PATCH] kaniko dockerfile test --- Dockerfile | 5 +++++ cloudbuildfunctions.yaml | 18 +++++++++--------- 2 files changed, 14 insertions(+), 9 deletions(-) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..b579ba9e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,5 @@ +FROM node:10.15.1 +WORKDIR cloud_functions/function +COPY package*.json ./ +RUN npm install +COPY . . \ No newline at end of file diff --git a/cloudbuildfunctions.yaml b/cloudbuildfunctions.yaml index 2598e222..d3a6e56b 100644 --- a/cloudbuildfunctions.yaml +++ b/cloudbuildfunctions.yaml @@ -1,9 +1,9 @@ steps: - # - name: "gcr.io/kaniko-project/executor:latest" - # args: - # - --destination=gcr.io/$PROJECT_ID/image - # - --cache=true - # - --cache-ttl=24h + - name: "gcr.io/kaniko-project/executor:latest" + args: + - --destination=gcr.io/$PROJECT_ID/image + - --cache=true + - --cache-ttl=24h - name: gcr.io/cloud-builders/gcloud args: - kms @@ -13,10 +13,10 @@ steps: - --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: ["install"] + # dir: "cloud_functions/functions" - name: node:10.15.1 entrypoint: yarn args: