Repo for Github Actions that integrates with DockerHub and ArgoCD
Dependencies:
Variables are defined in config.yml
and can be updated upon commit for new image tag:
docker:
DOCKER_HUB_USERNAME:
DOCKER_REPO_NAME:
VERSION_PART: # Patch, Minor, major
If the image does not exist, the default image tag is 0.0.1. Semantic versioning is employed upon commit, automatically incrementing the version
Workflow also requires DockerHub login credentials, username and password configuration in the Action secret:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
Under helm values in config.yml, define REPO (user/repo-name) and CHART name:
github-helm-repo:
REPO:
CHART:
If CI and Docker image push to Docker Hub workflows are successful, the update repo workflow will be triggered, updating the deployment image tag with the latest tag. Actions require write access and a generated Personal Access Token to have the ability to push to another GitHub Repository.
token: ${{ secrets.PAT }}
This is a proof of conceptm, workflow can be improved to match the requirements of individual use cases.
Check Repository with the Helm chart that is updated on changes.