DeployNow
...
Advanced Deployment Options
CI/CD with GitHub Actions
Image Updater Action
a github action to update values in an existing yaml or json file given key and the updated value for the key to be updated, this action writes the newly provided value for the given key the action can update the value in the following two ways update the file in the existing branch (which is generally main ) create a new branch from the source branch (which is generally main ), update the value for the given key, and raise the pr to the target branch use cases update manifests repo (helm chart) after building a new docker image update the image version configuration inside helm values yaml after building docker image snippet jobs push runs on ubuntu latest steps \ uses actions/checkout\@v3 \ name update image version in the related helmchart values yaml uses opsverseio/image updater action\@0 1 0 with valuefile 'deployment/helm/values yaml' propertypath 'backend version' value ${{ steps image outputs version }} branch deployment/${{ steps image outputs version }} targetbranch development createpr true message 'update image version to ${{ steps image outputs version }}' input arguments base configurations argument description default repository repository url where the manifests are present valuefile relative path from the workspace directory propertypath path of the key for which the value should be updated value new value that should be updated for the propertypath branch the updated yaml file will be committed to this branch, branch will be created if not exists master createpr create a pr from branch to targetbranch use true to enable it true message commit message ' ' token github token which is used to create the pr note the token should have right permissions for the selected repository workdir relative location of the configured repository masterbranchname the branch name of the primary branch master targetbranch the branch for which a pr gets created from branch note if this setting is enabled, it opens a pr from branch to targetbranch if createpr is set to true master force allows force pushes false updatefile (deprecated) the updated content will be written into the actual file by default false commitusername name used for the commit username used for the commit user github actions\[bot] commituseremail email address used for the commit user 41898282+github actions\[bot]@users noreply github com examples sync an application to sync an application in the deploynow instance automatically ( without any manual intervention ), use the following example name sync argocd app on push branches \ main jobs build runs on ubuntu latest steps \ uses actions/checkout\@v2 \ name "📝 update image tag version in the dev manifest file" uses opsverseio/image updater action\@0 1 0 with repository "opsverseio/deployment manifests" valuefile 'hello world api/helm/stage/values yaml' propertypath 'helloworldapidotnet image tag' value '${{ env short sha }}' branch main createpr false message '\[stage] update image tag of hello world api dotnet' token ${{ secrets github token }} workdir main masterbranchname main targetbranch main force true updatefile true the aforementioned example commits the value of ${{ env short sha }} to helloworldapi image tag key of the values yaml file here is the values yaml file for reverence helloworldapi image repository \<docker image registry> tag fec171b9 imagepullsecrets \ name regcred ingress enabled true annotations kubernetes io/ingress class nginx cert manager io/cluster issuer cluster letsencrypt prod hosts \ host \<hostname> paths \ path / pathtype implementationspecific service port 3000 note short sha will be set in the docker image build step it is recommended to give github token as repo secrets directly committing the raw secrets to github is not a good security measure