Closed pacholoamit closed 3 weeks ago
https://github.com/MediaJel/mediajel-tracker/pull/435 - all is done except for CI Workflow
Next step: Get in touch with Devops and add the command yarn tracker:generate-environments
in the CI process in the final step of main
after the aws cloudfront invalidate
build-main:
executor: the-executor
steps:
- checkout
- run:
name: Install project dependencies
command: npm install
- run:
name: type checking
command: npm run check
- run:
name: Cypress Install
command: sudo apt-get update && sudo apt-get install libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 libxtst6 xauth xvfb
- run:
name: cypress tests
command: npm run test
- run:
name: Build
command: npm run deploy
- aws-s3/sync:
from: dist/
to: "s3://mediajel-tracker-production"
arguments: --cache-control "max-age=2628288"
- aws-cloudfront/invalidate:
distribution_id: E3NZWAOF5B6J2O
paths: /*
- aws-cloudfront/invalidate:
distribution_id: E3FT67SI37G1ZH
paths: /*
- aws-cloudfront/invalidate:
distribution_id: EQGTP3X7S8LMI
paths: /*
- aws-cloudfront/invalidate:
distribution_id: EFJHMMZDNURYT
paths: /*
- aws-cloudfront/invalidate:
distribution_id: E3FT67SI37G1ZH
paths: /*
- aws-cloudfront/invalidate:
distribution_id: EQGTP3X7S8LMI
paths: /*
- aws-cloudfront/invalidate:
distribution_id: EFJHMMZDNURYT
paths: /*
// APPLY SCRIPT HERE
Implement the tracker generation script in CI
Update: Reach out to Joseph for status on implementing script in CI
Description
Steps:
environment
names into the final format of the S3 generated carts.