Skip to content

argocd-revision

Point every Argo CD Application at the platform manifests v3.0.0.

Uses: argocd.set_target_revision

Start a campaign from it, then point it at your organization:

gh fleet init --from argocd-revision --org your-org

Campaign

load("@fleet//argocd.star", "set_target_revision")

def change(repo):
    set_target_revision(repo, env["REPO_URL"], env["REVISION"])
# yaml-language-server: $schema=https://raw.githubusercontent.com/rossedman/gh-fleet/main/internal/campaign/campaign.schema.json
apiVersion: fleet.gh/v1
name: platform-apps-v3
description: Point every Argo CD Application at the platform manifests v3.0.0

targets:
  orgs: [acme]
  include:
    search: "github.com/acme/platform-manifests argoproj.io"

change:
  steps:
    # Sets targetRevision for every source whose repoURL is the platform
    # manifests repo, in `source` and in each entry of `sources`.
    - name: argocd-revision
      starlark: ./change.star
      timeout: 1m
  env:
    REPO_URL: https://github.com/acme/platform-manifests.git
    REVISION: v3.0.0

pr:
  title: "deploy: platform manifests v3.0.0"
  body: |
    Moves {{ .Repo.Name }}'s Argo CD Applications to platform-manifests v3.0.0.

    Opened by the `{{ .Campaign.Name }}` campaign with [gh fleet](https://github.com/rossedman/gh-fleet).
  labels: [fleet, deploy]

Source on GitHub