Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

Commit

Permalink
feat(cd): device UI is now build using snowpack.dev
Browse files Browse the repository at this point in the history
  • Loading branch information
coderbyheart committed Nov 11, 2020
1 parent 093f830 commit 6e63339
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions continuous-deployment-device-ui-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,10 @@ phases:
- export SOURCE_VERSION=`aws codepipeline get-pipeline-state --name
$INITIATOR_PIPELINE_NAME | jq -r '.stageStates[0].actionStates[] |
select(.actionName == "DeviceUISourceCode").currentRevision.revisionId'`
- export REACT_APP_VERSION=`git ls-remote --tags $SOURCE_REPO_URL | grep
- export VERSION=`git ls-remote --tags $SOURCE_REPO_URL | grep
$SOURCE_VERSION | cut -d'/' -f3 | cut -d'^' -f1`
- echo REACT_APP_VERSION=${REACT_APP_VERSION:-$SOURCE_VERSION} >>
$CODEBUILD_SRC_DIR_DeviceUI/.env.production.local
- cat $CODEBUILD_SRC_DIR_DeviceUI/.env.production.local
- export $(cat $CODEBUILD_SRC_DIR_DeviceUI/.env.production.local | xargs)
- export EXTEND_ESLINT=true
- cd $CODEBUILD_SRC_DIR_DeviceUI/; npm ci --no-audit; npm run build;
- aws s3 cp $CODEBUILD_SRC_DIR_DeviceUI/build
s3://$REACT_APP_DEVICE_UI_BUCKET_NAME --recursive --metadata-directive
Expand Down

0 comments on commit 6e63339

Please sign in to comment.