-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
21 additions
and
2 deletions.
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,14 +1,27 @@ | ||
package=$1 | ||
version=$2 | ||
|
||
set -e | ||
|
||
echo "processing $package $version" | ||
|
||
export DOCKER_BUILDKIT=1 | ||
mkdir -p /tmp/input /tmp/output | ||
|
||
rm -rf /tmp/output/* | ||
|
||
curl https://storage.googleapis.com/cdnjs-incoming-prod/design-system-2.15.4.tgz > /tmp/input/new-version.tgz | ||
curl https://raw.githubusercontent.com/cdnjs/packages/master/packages/d/design-system.json > /tmp/input/config.json | ||
echo "loading new version files" | ||
curl --fail https://storage.googleapis.com/cdnjs-incoming-prod/$package-$version.tgz > /tmp/input/new-version.tgz | ||
echo "loading package configuration" | ||
curl --fail https://raw.githubusercontent.com/cdnjs/packages/master/packages/${package::1}/$package.json > /tmp/input/config.json | ||
|
||
cat /tmp/input/config.json | ||
|
||
echo "----------------- input files -----------------" | ||
ls -lh /tmp/input | ||
|
||
docker build -f docker/process-version/Dockerfile -t sandbox . | ||
docker run -it -v /tmp/input:/input -v /tmp/output:/output sandbox | ||
|
||
echo "----------------- output files -----------------" | ||
ls -lh /tmp/output |