porter update
builds and updates a specified application given by the --app
flag. For example:
--path
flag. You can also overwrite the tag using the --tag
flag. For example, to build from the local directory ~/path-to-dir
with the tag testing
:
--source github
. Porter will use the latest commit from the remote repo and branch to update an application, and will use the latest commit as the image tag.
values.yaml
file in via the --values
flag. For example;
--method pack
. Conversely, if your application is set up to use a buildpack by default, you can use a Dockerfile by passing the flag “—method docker”. You can specify the relative path to a Dockerfile in your remote Git repository. For example, if a Dockerfile is found at ./docker/prod.Dockerfile
, you can specify it as follows:
--app
(string) Application in the Porter dashboard--dockerfile
(string) the path to the dockerfile-e, --env
(stringArray) Build-time environment variable, in the form ‘VAR=VALUE’. These are not available at image runtime.--method
(string) the build method to use (“docker” or “pack”)--namespace
(string) Namespace of the application (default “default”)-p, --path
(string) If local build, the path to the build directory. If remote build, the relative path from the repository root to the build directory.--source
(string) the type of source (“local” or “github”) (default “local”)--stream
(string) stream update logs to porter dashboard-t, --tag
(string) the specified tag to use, if not “latest”-v, --values
(string) Filepath to a values.yaml fileporter update env-group
updates an existing env group denoted with the --name
flag. For example:
-n
flag is used to denote a normal (or non-secret) variable in an env group. The -s
flag is used to denote a secret variable in an env group.
-n
flag.
prod-env
in the namespace prod
, you can do the following:
prod-env
in the namespace prod
, you can do the following:
prod-env
in the namespace prod
, you can do the following:
--name
(string) name of the env group--version
(uint) version of the env group to fork off of (default “0” which means the latest version)-n
or --normal
(stringArray) list of normal variables, in the form VAR=VALUE, to set-s
or --secret
(stringArray) list of secret variables, in the form VAR=VALUE, to set--namespace
(string) namespace of the env group (default “default”)