Skip to content

cheelim1/argocd-actions

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

ArgoCD Application Actions

GitHub Marketplace Actions Status Test Status

This action will sync ArgoCD application.

Usage

Example workflow

This example replaces syncs ArgoCD application.

name: My Workflow
on: [ push, pull_request ]
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - name: Sync ArgoCD Application
        uses: cheelim1/[email protected]
        with:
          address: "argocd.example.com"
          token: ${{ secrets.ARGOCD_TOKEN }}
          action: sync
          application: "my-example-app"

Inputs

Input Description
address ArgoCD server address.
token ArgoCD Token.
action ArgoCD Action i.e. sync.
application Application name to execute action on. [Optional]
labels ArgoCD app to sync based on labels. [Optional]

Note

Have to either pass in application OR labels. Either 1 is required.

Examples

Sync Application

You can sync ArgoCD application after building an image etc.

name: My Workflow
on: [ push, pull_request ]
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - name: Sync ArgoCD Application
        uses: cheelim1/[email protected]
        with:
          address: "argocd.example.com"
          token: ${{ secrets.ARGOCD_TOKEN }}
          action: sync
          application: "my-example-app"

Example syncing with labels

name: My Workflow
on: [ push, pull_request ]
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - name: Sync ArgoCD Application
        uses: cheelim1/[email protected]
        with:
          address: "argocd.example.com"
          token: ${{ secrets.ARGOCD_TOKEN }}
          action: sync
          labels: "env=production,team=myteam" # Replace with your ArgoCD App label key-value pairs.

Publishing

Create a new release & bump up the version tag 🚀.

About

Github Action for ArgoCD Applications

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • Go 86.3%
  • Makefile 8.7%
  • Dockerfile 5.0%