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.
- Sync ArgoCD application
- Update image tag for the application
- Works with GitHub Actions
- Can be ran locally
- Rust / Cargo
cargo run -- sync --address <ARGOCD_SERVER_ADDRESS> --token <ARGOCD_TOKEN> --application <APPLICATION_NAME> --image-tag <IMAGE_TAG> --debug <true|false>
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>
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>