{"id":25743171,"url":"https://github.com/freight-trust/actions-gitops-update","last_synced_at":"2026-05-15T09:40:51.231Z","repository":{"id":103602875,"uuid":"279085336","full_name":"freight-trust/actions-gitops-update","owner":"freight-trust","description":"coordinated gitops","archived":false,"fork":false,"pushed_at":"2020-08-09T11:11:27.000Z","size":109,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-20T18:18:06.133Z","etag":null,"topics":["devops","git","gitops","gitworkflow","kuberentes"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/freight-trust.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-12T14:49:06.000Z","updated_at":"2020-08-01T08:19:46.000Z","dependencies_parsed_at":"2023-03-13T15:07:17.671Z","dependency_job_id":null,"html_url":"https://github.com/freight-trust/actions-gitops-update","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freight-trust%2Factions-gitops-update","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freight-trust%2Factions-gitops-update/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freight-trust%2Factions-gitops-update/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freight-trust%2Factions-gitops-update/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/freight-trust","download_url":"https://codeload.github.com/freight-trust/actions-gitops-update/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240831376,"owners_count":19864719,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["devops","git","gitops","gitworkflow","kuberentes"],"created_at":"2025-02-26T10:18:58.762Z","updated_at":"2026-05-15T09:40:51.150Z","avatar_url":"https://github.com/freight-trust.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"@freight-trust/gitops-update\n============================\n**A GitHub Action and Workflow to update a collection of Kubernetes YAMLs for use in a GitOps-based deployment strategy**\n\n[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)\n[![Version](https://img.shields.io/npm/v/@freight-trust/gitops-update.svg)](https://npmjs.org/package/@freight-trust/gitops-update)\n[![Downloads/week](https://img.shields.io/npm/dw/@freight-trust/gitops-update.svg)](https://npmjs.org/package/@freight-trust/gitops-update)\n[![License](https://img.shields.io/npm/l/@freight-trust/gitops-update.svg)](https://github.com/https://github.com/freight-trust/actions-gitops-update/blob/master/package.json)\n\n\u003c!-- toc --\u003e\n- [GitOps Actions@Workflow](#gitops-actions-workflow)\n  * [Usage](#usage)\n    + [Default Kubernetes artifacts via Helm, etc.](#default-kubernetes-artifacts-via-helm--etc)\n    + [Appsody app-deploy.yaml](#appsody-app-deployyaml)\n  * [Parameters](#parameters)\n    + [Inputs](#inputs)\n  * [Example](#example)\n  * [License](#license)\n* [Usage](#usage)\n* [Commands](#commands)\n\u003c!-- tocstop --\u003e\n### Usage\n\u003c!-- usage --\u003e\n```sh-session\n$ npm install -g @freight-trust/gitops-update\n$ gitops-update COMMAND\nrunning command...\n$ gitops-update (-v|--version|version)\n@freight-trust/gitops-update/1.0.5 darwin-x64 node-v10.21.0\n$ gitops-update --help [COMMAND]\nUSAGE\n  $ gitops-update COMMAND\n...\n```\n\u003c!-- usagestop --\u003e\n\u003c!-- commands --\u003e\n# GitOps Actions@Workflow\n\n- [GitOps Actions@Workflow](#gitops-actions-workflow)\n  * [Usage](#usage)\n    + [Default Kubernetes artifacts via Helm, etc.](#default-kubernetes-artifacts-via-helm--etc)\n    + [Appsody app-deploy.yaml](#appsody-app-deployyaml)\n  * [Parameters](#parameters)\n    + [Inputs](#inputs)\n  * [Example](#example)\n  * [License](#license)\n\n## Usage\n\n### Default Kubernetes artifacts via Helm, etc.\n\n```yml\n      - name: Update GitOps YAMLs\n        id: update-gitops-yamls\n        uses: freight-trust/actions-update-gitops@master\n        with:\n          filePath: 'templates/deployment.yaml'\n```\n\nThe action expects to be run inside a working directory (by default, this is the `/github/workspace` directory in the virtual environment), with a default collection of application component deployment YAML files that have been created by `helm template` commands with the following folder structure:\n\n```\n      /{component-a}/templates/deployment.yaml\n      /{component-a}/templates/service.yaml\n      /{component-b}/templates/deployment.yaml\n      /{component-b}/templates/service.yaml\n      ...\n      /{component-n}/templates/deployment.yaml\n      /{component-n}/templates/service.yaml\n```\n\nThe action gets the latest Docker image versions from Docker Hub by searching against the image repositories used in each `deployment.yaml` and updates it inline in each file to the latest version (as defined by semantic versioning rules).\n\n### Appsody app-deploy.yaml\n\n```yml\n      - name: Update GitOps YAMLs\n        id: update-gitops-yamls\n        uses: freight-trust-cloud-architecture/actions-update-gitops@master\n        with:\n          filePath: 'appsody/app-deploy.yaml'\n```\n\nThe action expects to be run inside a working directory (by default, this is the `/github/workspace` directory in the virtual environment), with a collection of application component deployment YAML files that have been created by `helm template` commands with the following folder structure:\n\n```\n      /{component-a}/appsody/app-deploy.yaml\n      /{component-b}/appsody/app-deploy.yaml\n      /{component-c}/appsody/app-deploy.yaml\n      ...\n      /{component-n}/appsody/app-deploy.yaml\n```\n\nThe action gets the latest Docker image versions from Docker Hub by searching against the image repositories used in each `app-deploy.yaml` and updates it inline in each file to the latest version (as defined by semantic versioning rules).\n\n## Parameters\n\n### Inputs\n\n- `filePath` is the relative path inside of each components' working directory that will be searched for Docker image version replacement. This should not start with a leading slash and must be the complete file name, uniform across all components.  A single execution of the action will only scan files with same `filePath` across all components, however multiple executions with different `filePath` values can be run against the same working directory.\n\n## Example\n```yml\nname: Update GitOps deployments\non: [push]\nenv:\n  DESIRED_BRANCH: gitops-yaml-branch\njobs:\n  update-gitops-deployments:\n    runs-on: ubuntu-latest\n    steps:\n    - uses: actions/checkout@master\n    - name: Checkout default sandbox branch\n      id: checkout-sandbox-branch\n      run: |\n        git checkout ${DESIRED_BRANCH}\n    - name: Update GitOps YAMLs\n      id: update-gitops-yamls\n      uses: freight-trust/actions-update-gitops@master\n      with:\n        filePath: 'templates/deployment.yaml'\n    - name: Commit \u0026 push modified files\n      id: commit-and-push-files\n      env:\n        GITHUB_TOKEN: ...\n        GITHUB_ACTOR: ...\n      run: |\n        ...\n```\n\n## License\n[Apache 2.0](#)\n\n\u003c!-- commandsstop --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreight-trust%2Factions-gitops-update","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffreight-trust%2Factions-gitops-update","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreight-trust%2Factions-gitops-update/lists"}