Skip to content

Commit ac59326

Browse files
committed
testing version update deployment to dev and prod
1 parent e9e4212 commit ac59326

File tree

2 files changed

+21
-5
lines changed

2 files changed

+21
-5
lines changed

Makefile

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,24 @@
1-
# Initialize the development environment with common settings
21
all:
3-
git config --local submodule.recurse true
4-
git submodule update --init --recursive
5-
yarn install
2+
docker build -t rockd_website:latest .
3+
docker run --rm -it -p 5500:5500 --name rockd_website --env-file .env rockd_website:latest
64

5+
VERSION := $(shell jq -r .version ./package.json)
76

7+
TAG := hub.opensciencegrid.org/macrostrat/rockd-website:$(VERSION)
8+
9+
debug:
10+
docker build -t rockd_website:latest .
11+
-docker kill rockd_website
12+
docker run --rm -t \
13+
-p 5500:5500 \
14+
-p 9229:9229 \
15+
-d \
16+
--name rockd_website \
17+
--env-file .env \
18+
rockd_website:latest \
19+
node --inspect=0.0.0.0:9229 /code/server.js
20+
21+
publish:
22+
docker build --platform=linux/amd64 -t $(TAG) .
23+
docker push $(TAG)
824

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@macrostrat/web",
33
"private": true,
4-
"version": "2.2.2",
4+
"version": "2.2.3",
55
"description": "Macrostrat map interface",
66
"type": "module",
77
"scripts": {

0 commit comments

Comments
 (0)