Skip to content

A lightweight application designed to run either locally or as a github action. It triggers an application sync and patches the image tag.

Notifications You must be signed in to change notification settings

jon-butterworth/argocd-sync-tag

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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ArgoCD Tag & Sync Action

Get control of you ArgoCD deployments from your GitHub Action workflow, but patching the application with the latest image tag and syncing all from your workflow.

Features

  • Sync ArgoCD application
  • Update image tag for the application
  • Works with GitHub Actions
  • Can be ran locally

Build & run locally

Prerequisites

  • Rust / Cargo
cargo run -- sync --address <ARGOCD_SERVER_ADDRESS> --token <ARGOCD_TOKEN> --application <APPLICATION_NAME> --image-tag <IMAGE_TAG> --debug <true|false>

Running locally with Docker

docker build -t argocd-sync-app .
docker run --rm argocd-sync sync --address <ARGOCD_SERVER_ADDRESS> --token <ARGOCD_TOKEN> --application <APPLICATION_NAME> --image-tag <IMAGE_TAG> --debug <true|false>

Running with GitHub Actions

deploy-dev:
  permissions:
    id-token: write
    contents: write
  runs-on: dind
  steps:
    - name: Configure AWS credentials
      uses: aws-actions/configure-aws-credentials@v4
      with:
        aws-region: eu-west-1
        role-to-assume: <ROLE_ARN>
    - name: Login to ECR
      id: login-ecr
      uses: aws-actions/amazon-ecr-login@v2
    - name: Sync
      uses: <REPO>
      with:
        address: <ARGO SERVER ADDRESS>
        token: <ARGO TOKEN>
        application: <ARGO APPLICATION NAME>
        image-tag: <DESIRED IMAGE TAG>

About

A lightweight application designed to run either locally or as a github action. It triggers an application sync and patches the image tag.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Languages