This repo is part of three GitOps CI/CD demo repos:
This App repo contains a sample GO application which being containerize and pushed to ACR after every git pushusing GitHub Actions.
The GitHub Action also perform the following steps:
- Run Unit Test
- Scan the Docker image using Aqua Trivy Custom GitHub Action
- Update a file under dynamic folder in the related ArgoCD repo/demo-app Helm chart folder with the newly generated Docker image tag.
As a result of updating the file with the new tag value, ArgoCD sync operation will be triggered and will pull the new Docker image.
- Fork this repo
- Establish a trust between GitHub.com and your Azure subscription by configuring OpenID connect, follow this article.
- Create a PAT in your GitHub account, follow this article (we will refer this value as ACTIONS_TOKEN).
- Add the following GitHub Action secrets: AZURE_CLIENT_ID, AZURE_SUBSCRIPTION_ID, AZURE_TENANT_ID (the values should taken after following OpenID connect article) and ACTIONS_TOKEN.