From 4ce02a61604b5b472a80c525b74fb856e6d78823 Mon Sep 17 00:00:00 2001 From: milanpetrovic87 <50910654+milanpetrovic87@users.noreply.github.com> Date: Wed, 6 Sep 2023 13:48:49 +0200 Subject: [PATCH 1/2] Set up helm chart with Azure Pipelines [skip ci] --- azure-pipelines.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 00000000..fe8f0e25 --- /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: +- main + +pool: + vmImage: ubuntu-latest + +steps: +- script: echo Hello, world! + displayName: 'Run a one-line script' + +- script: | + echo Add other tasks to build, test, and deploy your project. + echo See https://aka.ms/yaml + displayName: 'Run a multi-line script' +- task: HelmDeploy@0 + inputs: + connectionType: 'Azure Resource Manager' + azureSubscription: 'Azure subscription 1(a0a53d3b-60ec-47b8-8503-2f4baa4453a4)' + azureResourceGroup: 'KubernetesRG' + kubernetesCluster: 'aks-vega' + namespace: 'default' + command: 'ls' \ No newline at end of file From b4c63ada8faabe0e97d6a73135e229e1d9793ab0 Mon Sep 17 00:00:00 2001 From: milanpetrovic87 <50910654+milanpetrovic87@users.noreply.github.com> Date: Wed, 6 Sep 2023 14:31:11 +0200 Subject: [PATCH 2/2] Set up helm test chart with CI and Azure Pipelines [skip ci] --- azure-pipelines.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index fe8f0e25..1c8608fc 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -1,4 +1,12 @@ # Starter pipeline +- task: HelmDeploy@0 + inputs: + connectionType: 'Azure Resource Manager' + azureSubscription: 'Azure subscription 1(a0a53d3b-60ec-47b8-8503-2f4baa4453a4)' + azureResourceGroup: 'myapp-rg' + kubernetesCluster: 'myapp' + namespace: 'default' + command: 'ls' # 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