Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 961 Bytes

README.md

File metadata and controls

27 lines (20 loc) · 961 Bytes

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