Skip to content
Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

GitHub Actions for Argo CD CLI

Example of usage

Get application status

- name: Check ArgoCD application status
  uses: AGvin/gha-argo-cd-cli@v1.1
  with:
    server: ${{ secrets.GHA_ARGO_CD_CLI_SERVER }}
    token: ${{ secrets.GHA_ARGO_CD_CLI_TOKEN }}
    app: ${{ vars.GHA_ARGO_CD_CLI_APP }}
    grpc_web: true
    command: "app get"

Sync application

- name: Execute sync for ArgoCD application
  uses: AGvin/gha-argo-cd-cli@v1.1
  with:
    server: ${{ secrets.GHA_ARGO_CD_CLI_SERVER }}
    token: ${{ secrets.GHA_ARGO_CD_CLI_TOKEN }}
    app: ${{ vars.GHA_ARGO_CD_CLI_APP }}
    grpc_web: true
    command: "app sync"
    args: "--prune"

Change helm application image parameter

- name: Change Helm image parameter
  uses: AGvin/gha-argo-cd-cli@v1.1
  with:
    server: ${{ secrets.GHA_ARGO_CD_CLI_SERVER }}
    token: ${{ secrets.GHA_ARGO_CD_CLI_TOKEN }}
    app: ${{ vars.GHA_ARGO_CD_CLI_APP }}
    grpc_web: true
    command: "app set"
    args: "--parameter spec.image=lmmendes/http-hello-world:1.0"

About

Argo CD CLI

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages