mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-06 12:12:42 +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:
@@ -88,6 +88,9 @@ jobs:
|
|||||||
- run:
|
- run:
|
||||||
name: Test - Content Negotiation
|
name: Test - Content Negotiation
|
||||||
command: npm run test:content-negotiation
|
command: npm run test:content-negotiation
|
||||||
|
- run:
|
||||||
|
name: Test - Build Docker image
|
||||||
|
command: DOCKERID=circliciTest npm run docker:build
|
||||||
|
|
||||||
workflows:
|
workflows:
|
||||||
build_and_test:
|
build_and_test:
|
||||||
|
|||||||
@@ -44,7 +44,9 @@
|
|||||||
"phb": "node --experimental-require-module scripts/phb.js",
|
"phb": "node --experimental-require-module scripts/phb.js",
|
||||||
"prod": "set NODE_ENV=production && npm run build",
|
"prod": "set NODE_ENV=production && npm run build",
|
||||||
"postinstall": "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",
|
"author": "stolksdorf",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|||||||
Reference in New Issue
Block a user