-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #336 from Workiva/wk-cdn
RM-138703 Release react-dart 6.1.6 (Publish JS bundles to Workiva CDN)
- Loading branch information
Showing
4 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,12 @@ | ||
FROM google/dart:2.13 | ||
|
||
WORKDIR /build | ||
COPY pubspec.yaml . | ||
|
||
RUN dart pub get | ||
|
||
COPY /lib ./lib/ | ||
RUN cd lib && tar -czvf ../cdn_assets.tar.gz *.js *.map | ||
ARG BUILD_ARTIFACTS_CDN=/build/cdn_assets.tar.gz | ||
|
||
FROM scratch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: validate_cdn_artifact | ||
description: Verifies the cdn artifact generated in the build contains the JS bundle files | ||
image: drydock.workiva.net/workiva/skynet-images:node-test-image-latest | ||
size: large | ||
timeout: 900 | ||
|
||
requires: | ||
Workiva/react-dart: | ||
- cdn | ||
|
||
scripts: | ||
- mkdir build | ||
- cp $SKYNET_APPLICATION_REACT_DART_CDN ./build | ||
- cd build | ||
- tar -xf cdn_assets.tar.gz | ||
- test -e ./react.js && { echo 'Verified dev bundle exists in CDN artifact.'; } || { echo 'Dev bundle /lib/react.js should exist in CDN artifact.'; exit 1; } | ||
- test -e ./react_dom.js && { echo 'Verified dev DOM bundle exists in CDN artifact.'; } || { echo 'Dev DOM bundle /lib/react_dom.js should exist in CDN artifact.'; exit 1; } | ||
- test -e ./react_with_react_dom_prod.js && { echo 'Verified prod bundle exists in CDN artifact.'; } || { echo 'Prod bundle /lib/react_with_react_dom_prod.js should exist in CDN artifact.'; exit 1; } | ||
- test -e ./react_prod.js && { echo 'Verified prod bundle exists in CDN artifact.'; } || { echo 'Prod bundle /lib/react_prod.js should exist in CDN artifact.'; exit 1; } | ||
- test -e ./react_dom_prod.js && { echo 'Verified prod DOM bundle exists in CDN artifact.'; } || { echo 'Prod DOM bundle /lib/react_dom_prod.js should exist in CDN artifact.'; exit 1; } |