https://github.com/omegion/argocd-actions
Github Action for ArgoCD Applications
https://github.com/omegion/argocd-actions
actions argocd
Last synced: 2 months ago
JSON representation
Github Action for ArgoCD Applications
- Host: GitHub
- URL: https://github.com/omegion/argocd-actions
- Owner: omegion
- License: apache-2.0
- Created: 2021-04-14T07:08:23.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T05:18:06.000Z (over 1 year ago)
- Last Synced: 2024-04-17T18:10:22.070Z (about 1 year ago)
- Topics: actions, argocd
- Language: Go
- Homepage:
- Size: 256 KB
- Stars: 13
- Watchers: 0
- Forks: 10
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Security: .github/SECURITY.md
Awesome Lists containing this project
README
# ArgoCD Application Actions
[](https://github.com/omegion/argocd-actions)
[](https://github.com/omegion/argocd-actions/actions)
[](https://github.com/omegion/argocd-actions/actions)This action will sync ArgoCD application.
## Usage
### Example workflow
This example replaces syncs ArgoCD application.
```yaml
name: My Workflow
on: [ push, pull_request ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Sync ArgoCD Application
uses: omegion/argocd-actions@v1
with:
address: "argocd.example.com"
token: ${{ secrets.ARGOCD_TOKEN }}
action: sync
appName: "my-example-app"
```### Inputs
| Input | Description |
|-----------|----------------------------------------|
| `address` | ArgoCD server address. |
| `token` | ArgoCD Token. |
| `action` | ArgoCD Action i.e. sync. |
| `appName` | Application name to execute action on. |## Examples
### Sync Application
You can sync ArgoCD application after building an image etc.
```yaml
name: My Workflow
on: [ push, pull_request ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Sync ArgoCD Application
uses: omegion/argocd-actions@master
with:
address: "vault.example.com"
token: ${{ secrets.ARGOCD_TOKEN }}
action: sync
appName: "my-example-app"
```## Publishing
To publish a new version of this Action we need to update the Docker image tag in `action.yml` and also create a new
release on GitHub.- Work out the next tag version number.
- Update the Docker image in `action.yml`.
- Create a new release on GitHub with the same tag.