{"id":18068944,"url":"https://github.com/lwitkowski/gitops-deploy-tag-action","last_synced_at":"2025-04-11T23:42:36.608Z","repository":{"id":204734951,"uuid":"365324187","full_name":"lwitkowski/gitops-deploy-tag-action","owner":"lwitkowski","description":"GitHub Action to update image tag in target Helm values.yaml","archived":false,"fork":false,"pushed_at":"2021-05-17T09:10:19.000Z","size":3,"stargazers_count":4,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T19:39:18.937Z","etag":null,"topics":["github-actions","gitops"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lwitkowski.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,"governance":null}},"created_at":"2021-05-07T18:42:55.000Z","updated_at":"2023-05-27T18:32:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"925beef0-1ba1-4d87-abb0-599c73cd2077","html_url":"https://github.com/lwitkowski/gitops-deploy-tag-action","commit_stats":null,"previous_names":["lwitkowski/gitops-deploy-tag-action"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lwitkowski%2Fgitops-deploy-tag-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lwitkowski%2Fgitops-deploy-tag-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lwitkowski%2Fgitops-deploy-tag-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lwitkowski%2Fgitops-deploy-tag-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lwitkowski","download_url":"https://codeload.github.com/lwitkowski/gitops-deploy-tag-action/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248497901,"owners_count":21113982,"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":["github-actions","gitops"],"created_at":"2024-10-31T08:08:19.204Z","updated_at":"2025-04-11T23:42:36.582Z","avatar_url":"https://github.com/lwitkowski.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitHub Action to update image tag in target Helm values.yaml\n\nThis [GitHub Action](https://github.com/actions) checks out target repo, updates image tag in specified target file and pushes the changes.\n\nYou can add this action to your GitHub workflow for Ubuntu runners (e.g. `runs-on: ubuntu-latest`) as follows:\n\n```yaml\njobs:\n  build:\n    runs-on: ubuntu-latest\n    env:\n      DEPLOY_GITOPS_REPO: 'lwitkowski/playground-gitops'\n      DEPLOY_TOKEN: ${{ secrets.DEPLOY_TOKEN }}\n\n    steps:\n      - name: Deploy to test\n        uses: lwitkowski/gitops-deploy-tag-action@master\n        with:\n          target-file: 'sample-service/test/values.yaml'\n\n      - name: Deploy to production\n        uses: lwitkowski/gitops-deploy-tag-action@master\n        with:\n          target-file: 'sample-service/prod/values.yaml'\n```\n\nTODO: how to setup `DEPLOY_TOKEN` secret? machine user token with repo write permissions\n\n## Configuration\n\nThe action can be configured by the following options.\n\n|Option|Default Value|Description|\n|:-----|:-----:|:----------|\n|`gitops-repo`|`${DEPLOY_GITOPS_REPO}`|Owner and name of target gitops repository name where yaml file is stored. |\n|`target-file`|mandatory|Path to yaml file inside gitops repo to be updated.|\n|`docker-image-tag`|`${GITHUB_SHA::6}`|Docker image tag to be set in target yaml file.|\n|`env.DEPLOY_TOKEN`|mandatory|Github access token with write permission to gitops repo. Should be set as env variable in calling workflow.|\n\nNote: Running this action on `pull_request_target` events is [dangerous if combined with code checkout and code execution](https://securitylab.github.com/research/github-actions-preventing-pwn-requests).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flwitkowski%2Fgitops-deploy-tag-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flwitkowski%2Fgitops-deploy-tag-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flwitkowski%2Fgitops-deploy-tag-action/lists"}