diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 00000000..76fdcc2a --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,27 @@ +# Starter pipeline +# Start with a minimal pipeline that you can customize to build and deploy your code. +# Add steps that build, run tests, deploy, and more: +# https://aka.ms/yaml + +trigger: +- secrets-feature + +pool: + vmImage: ubuntu-latest + +steps: +- task: Docker@2 + inputs: + containerRegistry: 'Docker Hub' + repository: 'mayaaiuga/flask-app-sercrets' + command: 'buildAndPush' + Dockerfile: '**/Dockerfile' + tags: 'latest' +- task: KubernetesManifest@1 + inputs: + action: 'deploy' + connectionType: 'azureResourceManager' + azureSubscriptionConnection: 'aks-service-connection' + azureResourceGroup: 'aks-rg' + kubernetesCluster: 'aks-demo' + manifests: 'deployment.yaml'