GitHub Action that updates a single key in another GitHub repository.
You have a deployment.yaml
file in a myorg/app-env
repository that has below content:
Add this to GitHub acion:
- name: GitOps Update
uses: simplycubed/[email protected]
with:
filename: "path/to/deployment.yaml"
key: "image"
value: '${{ secrets.REGISTRY_LOGIN_SERVER }}/sampleapp:${{ github.sha }}'
github-deploy-key: ${{ secrets.GITOPS_SSH_PRIVATE_KEY }}
github-org-and-repo: "myorg/app-env"