kaniko dockerfile test

This commit is contained in:
Shams mosowi
2020-07-02 14:21:16 +08:00
parent a9f68e6fcc
commit 20848c0929
2 changed files with 14 additions and 9 deletions

5
Dockerfile Normal file
View File

@@ -0,0 +1,5 @@
FROM node:10.15.1
WORKDIR cloud_functions/function
COPY package*.json ./
RUN npm install
COPY . .

View File

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