Add a build script
This commit is contained in:
parent
4f5f99ccf2
commit
1bff9c9ba0
@ -1,3 +1,4 @@
|
|||||||
|
/build
|
||||||
/node_modules
|
/node_modules
|
||||||
/public/css
|
/public/css
|
||||||
/public/fonts
|
/public/fonts
|
||||||
@ -13,3 +14,5 @@
|
|||||||
!/storage/logs/.gitignore
|
!/storage/logs/.gitignore
|
||||||
/tests
|
/tests
|
||||||
/vendor
|
/vendor
|
||||||
|
.env
|
||||||
|
yarn-error-log
|
||||||
|
|||||||
8
build/build.sh
Executable file
8
build/build.sh
Executable file
@ -0,0 +1,8 @@
|
|||||||
|
REGISTRY_URL="registry.chaoticlogic.us"
|
||||||
|
IMAGE_NAME="daniel-website"
|
||||||
|
IMAGE_TAG="latest"
|
||||||
|
|
||||||
|
PROJECT_PATH=$(realpath "$(dirname "$0")/..")
|
||||||
|
|
||||||
|
docker build -t "$REGISTRY_URL/$IMAGE_NAME:$IMAGE_TAG" "$PROJECT_PATH"
|
||||||
|
docker push "$REGISTRY_URL/$IMAGE_NAME:$IMAGE_TAG"
|
||||||
Loading…
Reference in New Issue
Block a user