Skip to content

Commit 93be9cc

Browse files
committed
standardize format
1 parent 36b0cfc commit 93be9cc

3 files changed

Lines changed: 6 additions & 15 deletions

File tree

helm-deploy/action.yml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -49,35 +49,30 @@ runs:
4949
using: "composite"
5050
steps:
5151
- name: Login to Helm registry
52-
shell: bash
5352
run: |
5453
helm registry login ${{ inputs.helm-registry-url }} \
5554
-u ${{ inputs.helm-username }} \
5655
-p ${{ inputs.helm-password }}
57-
58-
- name: Pull the Helm chart
5956
shell: bash
57+
- name: Pull the Helm chart
6058
working-directory: ${{ inputs.working-directory }}
6159
run: |
6260
helm pull ${{ inputs.helm-protocol }}${{ inputs.helm-registry-url }}/${{ inputs.helm-package }} \
6361
--version ${{ inputs.helm-chart-version }}
64-
65-
- name: Extract Helm chart
6662
shell: bash
63+
- name: Extract Helm chart
6764
working-directory: ${{ inputs.working-directory }}
6865
run: |
6966
tar -xzf ${{ inputs.helm-package }}-*.tgz
70-
71-
- name: Update appVersion in Chart.yaml
7267
shell: bash
68+
- name: Update appVersion in Chart.yaml
7369
working-directory: ${{ inputs.working-directory }}
7470
run: |
7571
yq -i '.appVersion = "${{ github.sha }}" | .appVersion style="double"' \
7672
${{ inputs.helm-package }}/Chart.yaml
77-
73+
shell: bash
7874
- name: Collect Grafana dashboards and alerts
7975
id: grafana-files
80-
shell: bash
8176
working-directory: ${{ inputs.working-directory }}
8277
run: |
8378
SET_FILE_ARGS=""
@@ -103,9 +98,8 @@ runs:
10398
fi
10499
105100
echo "set-file-args=$SET_FILE_ARGS" >> $GITHUB_OUTPUT
106-
107-
- name: Deploy Helm chart
108101
shell: bash
102+
- name: Deploy Helm chart
109103
working-directory: ${{ inputs.working-directory }}
110104
env:
111105
HELM_DRIVER: configmaps
@@ -117,3 +111,4 @@ runs:
117111
--namespace ${{ inputs.namespace }} \
118112
--values ${{ inputs.values-file }} \
119113
${{ steps.grafana-files.outputs.set-file-args }}
114+
shell: bash

kubectl-deploy/action.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,10 @@ runs:
2222
working-directory: ${{ inputs.working-directory }}
2323
run: kubectl apply -f ${{ inputs.deployment-file }}
2424
shell: bash
25-
2625
- name: Verify deployment
2726
id: verify
2827
run: kubectl rollout status -n ${{ inputs.namespace-name }} deployment/${{ inputs.deployment-name }}
2928
shell: bash
30-
3129
- name: Undo deployment if failed
3230
if: ${{ failure() && steps.verify.conclusion == 'failure' }}
3331
run: kubectl rollout undo -n ${{ inputs.namespace-name }} deployment/${{ inputs.deployment-name }}

setup-kubectl-and-helm/action.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,12 @@ runs:
2121
uses: azure/setup-kubectl@v4
2222
with:
2323
version: ${{ inputs.kubectl-version }}
24-
2524
- name: Setup kubeconfig file
2625
run: |
2726
mkdir -p ~/.kube
2827
echo "${{ inputs.kubeconfig }}" > ~/.kube/config
2928
chmod 600 ~/.kube/config
3029
shell: bash
31-
3230
- name: Setup Helm
3331
uses: azure/setup-helm@v4
3432
with:

0 commit comments

Comments
 (0)