0.0.6 • Published 2 years ago
barque v0.0.6
barque
package and deploy an
upmkproject
License
MIT - see LICENSE
Package
Build webapp with docker and tag in git. Doing so will:
- verify valid version number
- verify you are on an acceptable git branch (master || main by default)
- set this with an
allowed-brancheskey in yourupmk.ymlfile for each environment
- set this with an
- docker build your app (with included tag)
- git tag the repo (and push the tag to the remote)
- update your
upmk.ymlenvironment with the new docker image name + tag - build your
bin/restart-<environent>.shfile with the latest image name + tag
barque package <envirnoment> <version> [--npm-token=token --skip-git --skip-docker-push]For example
barque package production 0.2.45 --npm-token=abcdefgOptions
- pass along
--npm-tokento use it as anNPM_TOKENbuild arg - skip over git tagging and push with
--skip-git - skip the docker push step with
--skip-docker-push
Deploy
Runs the local bin/restart-<env>.sh script file via ssh on the configured server
barque deploy <environment>For example
barque deploy productionWill execute the local bin/restart-production.sh script that gets built
during packaging
TODO:
- none