From 0d81404f91bab150c2104b250bab8694e9e529a0 Mon Sep 17 00:00:00 2001 From: aytekin Date: Fri, 10 Feb 2023 09:18:39 -0600 Subject: [PATCH] feat: ci&cd yml files added. --- .buddy/cd.yml | 29 +++++++++++++++++++++++++++++ .buddy/ci.yml | 22 ++++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 .buddy/cd.yml create mode 100644 .buddy/ci.yml diff --git a/.buddy/cd.yml b/.buddy/cd.yml new file mode 100644 index 0000000..9662c11 --- /dev/null +++ b/.buddy/cd.yml @@ -0,0 +1,29 @@ +- pipeline: 'CD' + on: 'CLICK' + refs: + - 'refs/heads/*' + priority: 'NORMAL' + fail_on_prepare_env_warning: true + variables: + - key: 'GH_TOKEN' + value: 'secure!hlrHPtjo86FrkValxTh7PO/CQtl/7k7pmErjcq+t7V0=.RwqkXF3OVdnoW/rURKLx9w==' + type: 'VAR' + encrypted: true + - key: 'NPM_TOKEN' + value: 'secure!hlrHPtjo86FrkValxTh7PO/CQtl/7k7pmErjcq+t7V0=.RwqkXF3OVdnoW/rURKLx9w==' + type: 'VAR' + encrypted: true + actions: + - action: 'Deploy to GitHub packages' + type: 'BUILD' + region: 'us-west-2' + docker_image_name: 'smartcar/base' + docker_image_tag: '14' + execute_commands: + - 'npm ci' + - 'npx semantic-release' + volume_mappings: + - '/:/buddy/clutch-assert' + cache_base_image: true + shell: 'BASH' + integration_hash: '3DmJqAMrlNbWp9nJdyg5Kx2n6z' diff --git a/.buddy/ci.yml b/.buddy/ci.yml new file mode 100644 index 0000000..f27a150 --- /dev/null +++ b/.buddy/ci.yml @@ -0,0 +1,22 @@ +- pipeline: 'CI' + on: 'CLICK' + refs: + - 'refs/heads/*' + priority: 'NORMAL' + fail_on_prepare_env_warning: true + actions: + - action: 'Build dependencies' + type: 'BUILD' + region: 'us-west-2' + docker_image_name: 'smartcar/base' + docker_image_tag: '14' + execute_commands: + - 'npm ci --ignore-scripts' + - 'npm rebuild' + - 'npm run cover' + - 'bash <(curl -s https://codecov.io/bash)' + volume_mappings: + - '/:/buddy/clutch-assert' + cache_base_image: true + shell: 'BASH' + integration_hash: '3DmJqAMrlNbWp9nJdyg5Kx2n6z'