Team
pp-cli
pp-cli
common use cases
deploy current dev branch
Set PP_CONF env var, then:
$ pp version
$ pp build api
$ pp build font
$ pp deploy dev
Note: For dev deployment the docker image is set to its SHA256 hash
and not the usual tag rg.fr-par.scw.cloud/pp-registry-test1/pp-core:2.6.1. A new commit on the same branch and version will corectly point to a new image since the hsah is unique.
generate and deploy a new version
deploy a given prod version
deploy
# You should always run pp from the pp-base image
# so if your not in a CI/CD env, you shoud first start a fresh container:
pp image run base
# see pp CI conf !
export DEPLOY_K8S_NAMESPACE=pp-dev
export PP_CONF_1=xxxx
export PP_BACKEND=api2.dev.paxpar.io
export PP_VERSION=4.7.0
export PP_DEPLOY_PROFILE=dev
# deploy both back and front at the same time
pp deploy dev
# or deploy back then front
pp deploy back
pp deploy front
run