This action will sync ArgoCD application.
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"
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] |
Have to either pass in application OR labels. Either 1 is required.
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"
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.
Create a new release & bump up the version tag 🚀.