0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-31 15:12:39 +00:00

Add Docker Image build and Publish to workflow

Adds docker:build and docker:publish npm scripts
expects DOCKERID to contain the user/organization id for formatting the tag ( DOCKERID/hombrewery:version )

Add CircleCI test to ensure image still builds
This commit is contained in:
David Bolack
2025-10-28 14:10:04 -05:00
parent 1f89acb018
commit a0d288057f
2 changed files with 6 additions and 1 deletions

View File

@@ -44,7 +44,9 @@
"phb": "node --experimental-require-module scripts/phb.js",
"prod": "set NODE_ENV=production && npm run build",
"postinstall": "npm run build",
"start": "node --experimental-require-module server.js"
"start": "node --experimental-require-module server.js",
"docker:build": "docker build -t ${DOCKERID}/homebrewery:$npm_package_version .",
"docker:publish": "docker login && docker push ${DOCKERID}/homebrewery:$npm_package_version"
},
"author": "stolksdorf",
"license": "MIT",