@nsidc/snow-today-webapp 0.2.0 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -0
- package/deploy/deploy +35 -0
- package/doc/releasing.md +14 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
# v0.3.2 (2022-08-22)
|
|
2
|
+
|
|
3
|
+
* Fix deploy script use of docker-compose files
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
# v0.3.1 (2022-08-22)
|
|
7
|
+
|
|
8
|
+
* Fix deployment script version solver
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
# v0.3.0 (2022-08-22)
|
|
12
|
+
|
|
13
|
+
* Add automated deployment script
|
|
14
|
+
|
|
15
|
+
|
|
1
16
|
# v0.2.0 (2022-08-22)
|
|
2
17
|
|
|
3
18
|
* Use QA data server URL
|
package/deploy/deploy
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
set -euo pipefail
|
|
3
|
+
|
|
4
|
+
ENVIRONMENT="$1"
|
|
5
|
+
|
|
6
|
+
THIS_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
7
|
+
REPO_ROOT_DIR="$(dirname "$THIS_DIR")"
|
|
8
|
+
|
|
9
|
+
VERSION_FILE="$REPO_ROOT_DIR/package.json"
|
|
10
|
+
CANONICAL_VERSION="v$(cat "$VERSION_FILE" | jq -r .version)"
|
|
11
|
+
|
|
12
|
+
source /etc/profile.d/envvars.sh
|
|
13
|
+
|
|
14
|
+
cd "$REPO_ROOT_DIR"
|
|
15
|
+
|
|
16
|
+
if [ "$ENVIRONMENT" = "integration" ]; then
|
|
17
|
+
APP_VERSION="latest"
|
|
18
|
+
version_desc="latest"
|
|
19
|
+
else
|
|
20
|
+
APP_VERSION="$CANONICAL_VERSION"
|
|
21
|
+
version_desc="production"
|
|
22
|
+
fi
|
|
23
|
+
|
|
24
|
+
echo "Using $version_desc versions in $ENVIRONMENT..."
|
|
25
|
+
echo "APP_VERSION=$APP_VERSION"
|
|
26
|
+
export APP_VERSION
|
|
27
|
+
|
|
28
|
+
# Replace the current app
|
|
29
|
+
ln -s docker-compose.live.yml docker-compose.override.yml
|
|
30
|
+
docker-compose pull
|
|
31
|
+
docker-compose down --remove-orphans
|
|
32
|
+
docker-compose up -d
|
|
33
|
+
|
|
34
|
+
# Cleanup
|
|
35
|
+
docker system prune -af
|
package/doc/releasing.md
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Releasing
|
|
2
|
+
|
|
3
|
+
The `latest` image on Dockerhub will be updated with each commit to `main`.
|
|
4
|
+
|
|
5
|
+
To release a new tagged image to DockerHub and a new version to NPM:
|
|
6
|
+
|
|
7
|
+
* Update version in `package.json`.
|
|
8
|
+
* Run `npm i` to update `package-lock.json`.
|
|
9
|
+
* Update `CHANGELOG.md` following existing convention.
|
|
10
|
+
* Commit
|
|
11
|
+
* Merge to main if necessary
|
|
12
|
+
* Tag the main branch: `git tag vX.Y.Z`
|
|
13
|
+
* Push the tag to GitHub to trigger automated releases of Docker Images and NPM bundle:
|
|
14
|
+
`git push origin vX.Y.Z`
|