argocdapp Plugin

    Notes: - ArgoCD itself must have been already installed before the usage of this plugin. To install ArgoCD, use the argocd plugin. Or you can use both plugins(argocd+argocdapp) at the same time. See for more info. - Currently, only the Helm chart is supported when creating the ArgoCD application. - Modify the file accordingly. Especially remember to modify ARGOCD_TOOL_NAME.

    Use Together with the github-repo-scaffolding-golang Plugin

    For example, you can first use github-repo-scaffolding-golang to bootstrap a Golang repo, then use this plugin to set up basic GitHub Actions CI workflows. In this scenario:

    • This plugin can specify github-repo-scaffolding-golang as a dependency, so that the dependency is first satisfied before executing this plugin.
    • This plugin can refer to github-repo-scaffolding-golang‘s output to reduce copy/paste human error.
    1. ---
    2. tools:
    3. - name: go-webapp-repo
    4. plugin: github-repo-scaffolding-golang
    5. options:
    6. repo: go-webapp-devstream-demo
    7. branch: main
    8. image_repo: ironcore864/go-webapp-devstream-demo
    9. - name: go-webapp-argocd-deploy
    10. plugin: argocdapp
    11. dependsOn: ["go-webapp-repo.github-repo-scaffolding-golang"]
    12. options:
    13. app:
    14. name: hello
    15. destination:
    16. namespace: default
    17. source:
    18. valuefile: values.yaml
    19. path: charts/go-hello-http
    20. repoURL: ${{go-webapp-repo.github-repo-scaffolding-golang.outputs.repoURL}}

    In the example above:

    • We put go-webapp-repo.github-repo-scaffolding-golang as dependency by using the dependsOn keyword.
    • We used go-webapp-repo.github-repo-scaffolding-golang‘s output as input for the githubactions-golang plugin.