Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*.js
*.html
*.scss
*.md
4 changes: 4 additions & 0 deletions src/build-n-publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@
pkgName="relay-webapp"
pkgVersion=${1:-"v0.0.0-build0"}
cdnBaseUrl=${2:-"//cdn.fromdoppler.com/$pkgName"}
# shellcheck disable=SC2034
cdnUrl="$cdnBaseUrl/$pkgVersion"

# Exit immediately if a command exits with a non-zero status.
set -e

# Lines added to get the script running in the script path shell context
# reference: http://www.ostricher.com/2014/10/the-right-way-to-get-the-directory-of-a-bash-script/
# shellcheck disable=SC2046,SC2086
cd $(dirname $0)

# To avoid issues with MINGW and Git Bash, see:
Expand All @@ -18,11 +20,13 @@ cd $(dirname $0)
export MSYS_NO_PATHCONV=1
export MSYS2_ARG_CONV_EXCL="*"

# shellcheck disable=SC2086
./build-w-docker.sh $pkgVersion $cdnBaseUrl

# Force pull the latest image version due to the cache not always is pruned immediately after an update is uploaded to docker hub
docker pull dopplerrelay/doppler-relay-akamai-publish

# shellcheck disable=SC2046,SC2006
docker run --rm \
-e AKAMAI_CDN_HOSTNAME \
-e AKAMAI_CDN_USERNAME \
Expand Down
2 changes: 2 additions & 0 deletions src/run-w-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ set -e

# Lines added to get the script running in the script path shell context
# reference: http://www.ostricher.com/2014/10/the-right-way-to-get-the-directory-of-a-bash-script/
# shellcheck disable=SC2046,SC2086
cd $(dirname $0)

# To avoid issues with MINGW and Git Bash, see:
Expand All @@ -13,6 +14,7 @@ cd $(dirname $0)
export MSYS_NO_PATHCONV=1
export MSYS2_ARG_CONV_EXCL="*"

# shellcheck disable=SC2046,SC2006
docker run --rm \
-v /`pwd`:/work \
-p 3000:3000 \
Expand Down