mirror of
https://github.com/rowyio/rowy.git
synced 2026-02-24 04:01:17 +01:00
kaniko test, log current build config
This commit is contained in:
@@ -20,12 +20,15 @@ if (serviceAccount) {
|
||||
});
|
||||
const db = admin.firestore();
|
||||
|
||||
const main = async deployRequestPath => {
|
||||
await db.doc(deployRequestPath).update({ deployedAt: serverTimestamp() });
|
||||
const main = async (deployRequestPath: string, currentBuild) => {
|
||||
await db.doc(deployRequestPath).update({
|
||||
deployedAt: serverTimestamp(),
|
||||
currentBuild: currentBuild ?? "",
|
||||
});
|
||||
return true;
|
||||
};
|
||||
|
||||
main(process.argv[2])
|
||||
main(process.argv[2], process.argv[3])
|
||||
.catch(err => console.log(err))
|
||||
.then(() => console.log("this will succeed"))
|
||||
.catch(() => "obligatory catch");
|
||||
|
||||
@@ -1,4 +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/cloud-builders/gcloud
|
||||
args:
|
||||
- kms
|
||||
@@ -34,6 +39,7 @@ steps:
|
||||
args:
|
||||
- "updateStatus"
|
||||
- "${_REQUEST_DOC_PATH}"
|
||||
- "${_FUNCTION_CONFIG}"
|
||||
dir: "cloud_functions/functions"
|
||||
|
||||
substitutions:
|
||||
|
||||
Reference in New Issue
Block a user