Skip to content

Commit 04d25af

Browse files
fix: Refactor (#11)
* refactor * fix * renamed
1 parent 0018ad6 commit 04d25af

File tree

1 file changed

+15
-23
lines changed

1 file changed

+15
-23
lines changed

aks-deploy/action.yml

Lines changed: 15 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Check PR Size
1+
name: Deploy helm chart
22
description: "Check the size of a Pull Request"
33

44
inputs:
@@ -55,21 +55,6 @@ runs:
5555
with:
5656
ref: ${{ inputs.branch}}
5757

58-
- name: Read terraform version
59-
shell: bash
60-
run: |
61-
echo "TERRAFORM_VERSION=`cat .terraform-version`" >> $GITHUB_ENV
62-
63-
- name: Setup Terraform
64-
uses: hashicorp/setup-terraform@8feba2b913ea459066180f9cb177f58a881cf146
65-
with:
66-
terraform_version: ${{ env.TERRAFORM_VERSION }}
67-
68-
- name: Set up kubelogin for non-interactive login
69-
uses: azure/use-kubelogin@v1
70-
with:
71-
kubelogin-version: 'v0.0.24'
72-
7358
- name: Login
7459
uses: azure/login@89d153571fe9a34ed70fcf9f1d95ab8debea7a73
7560
with:
@@ -85,16 +70,23 @@ runs:
8570
admin: 'false'
8671
use-kubelogin: 'true'
8772

88-
- name: Helm Setup
73+
- name: 🛠️ Helm configure repos
8974
shell: bash
9075
run: |
9176
helm repo add microservice-chart https://pagopa.github.io/aks-microservice-chart-blueprint
9277
helm dep build helm
78+
echo "✅ aks blueprint configured"
9379
94-
- name: Helm Deploy
80+
- name: 🚀 Helm Deploy
9581
shell: bash
96-
run: helm upgrade --namespace ${{ inputs.namespace }}
97-
--install --values ./helm/values-${{ inputs.env }}.yaml
98-
${{inputs.helm_upgrade_options}}
99-
--wait --timeout 5m0s
100-
${{ inputs.app_name }} ./helm
82+
run: |
83+
echo "🚀 Launch helm deploy"
84+
85+
helm upgrade --namespace ${{ inputs.namespace }} \
86+
--install --values ./helm/values-${{ inputs.env }}.yaml \
87+
${{inputs.helm_upgrade_options}} \
88+
--wait --timeout 5m0s \
89+
${{ inputs.app_name }} ./helm
90+
91+
echo "✅ Helm deployed"
92+

0 commit comments

Comments
 (0)