Skip to content

Latest commit

 

History

History
71 lines (56 loc) · 2.64 KB

README.md

File metadata and controls

71 lines (56 loc) · 2.64 KB

ArgoCD Application Actions

GitHub Marketplace Actions Status Actions 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@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.

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.