Skip to content

Commit

Permalink
Merge pull request #104 from smartcar/migrate-ci-cd-to-buddyCI
Browse files Browse the repository at this point in the history
Migrate ci cd to buddy ci
  • Loading branch information
aytekin-smartcar authored Feb 14, 2023
2 parents 20c33f4 + 0b475ae commit 118b673
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 38 deletions.
31 changes: 31 additions & 0 deletions .buddy/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
- pipeline: 'CD'
on: 'EVENT'
events:
- type: 'PUSH'
refs:
- ':default'
priority: 'HIGH'
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!JSjVxtqJWZ5+mNfIIT3aPiqpo0/xTyOoeSI6MFyViZY=.xQwDwzONGDKV1UY65gvuPw=='
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'
31 changes: 31 additions & 0 deletions .buddy/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
- pipeline: 'CI'
on: 'EVENT'
events:
- type: 'PUSH'
refs:
- 'refs/heads/*'
priority: 'NORMAL'
fail_on_prepare_env_warning: true
variables:
- key: 'CODECOV_TOKEN'
value: 'secure!98lZjvc3CKurbTtXVlQH16aV+fYmfEppicIF3doKpeL2eYhd9snLO+0n+srjBlL+.EciZ7pJQwo9GJwIabNI6dw=='
type: 'VAR'
encrypted: 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'
- 'curl -Os https://uploader.codecov.io/latest/linux/codecov'
- 'chmod +x codecov'
- './codecov -t ${CODECOV_TOKEN} -R .nyc_output'
volume_mappings:
- '/:/buddy/clutch-assert'
cache_base_image: true
shell: 'BASH'
integration_hash: '3DmJqAMrlNbWp9nJdyg5Kx2n6z'
38 changes: 0 additions & 38 deletions .travis.yml

This file was deleted.

0 comments on commit 118b673

Please sign in to comment.