Skip to content

Example Application Repository to demonstrate GitOps

Notifications You must be signed in to change notification settings

maci3jka/gitops-example-application

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Example Application Repository

This is an application repository to perform Operations on Pull Request via an environment repository. It runs a GitHub Workflow to build a container image on a new release, and triggers a workflow in the environment repository to create a pull request with the new application version.

Requirements

  • Secret: AZURE_CREDENTIALS of service principal with access to resources
  • Secret: PERSONAL_ACCESS_TOKEN to trigger GitHub Workflows in the environment Repository
  • Variable: REGISTRY_USERNAME for the container image registry repository
  • Secret: REGISTRY_PASSWORD for the container image registry token
  • Variable: REGISTRY_LOGIN_SERVER for the container image registry token

Run the App locally

docker build -t app .
docker run -p 8080:8080 app
curl localhost:8080 

Connect to app on k8s cluster

kubectl port-forward svc/example-application 8080:8080
curl localhost:8080 

About

Example Application Repository to demonstrate GitOps

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dockerfile 55.0%
  • Go 45.0%