From 66d2f95e9fb6690b07b00a6d76ceb155ebb4b810 Mon Sep 17 00:00:00 2001 From: Oleksandr Andriienko Date: Thu, 24 Sep 2020 10:27:22 +0300 Subject: [PATCH] feat: Dev commands (#460) * Improve dev flow: add some VSCode development commands Signed-off-by: Oleksandr Andriienko --- .vscode/tasks.json | 32 +++++++++++++++++++ ...te-cr-crd-files.sh => update-crd-files.sh} | 0 2 files changed, 32 insertions(+) create mode 100644 .vscode/tasks.json rename olm/{update-cr-crd-files.sh => update-crd-files.sh} (100%) diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 000000000..e6088c562 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,32 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "Update cr/crd files", + "command": "./olm/update-crd-files.sh", + "type": "shell", + "args": [], + "problemMatcher": [ + "$go" + ], + "presentation": { + "reveal": "always" + }, + "group": "build" + }, + { + "label": "Build and push custom che-operator image: '${IMAGE_REGISTRY_HOST}/${IMAGE_REGISTRY_USER_NAME}/che-operator:nightly'", + "command": "docker build -t ${IMAGE_REGISTRY_HOST}/${IMAGE_REGISTRY_USER_NAME}/che-operator:nightly . && docker push ${IMAGE_REGISTRY_HOST}/${IMAGE_REGISTRY_USER_NAME}/che-operator:nightly", + "type": "shell", + "args": [], + "problemMatcher": [ + "$go" + ], + "presentation": { + "reveal": "always" + }, + "group": "build" + } + ] +} + diff --git a/olm/update-cr-crd-files.sh b/olm/update-crd-files.sh similarity index 100% rename from olm/update-cr-crd-files.sh rename to olm/update-crd-files.sh