Skip to content

Commit c6e3806

Browse files
edit
1 parent 5669000 commit c6e3806

File tree

2 files changed

+16
-23
lines changed

2 files changed

+16
-23
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ jobs:
120120
IMAGE_TAG="latest"
121121
elif [[ "${{ env.BRANCH_NAME }}" == "dev" ]]; then
122122
IMAGE_TAG="dev"
123+
elif [[ "${{ env.BRANCH_NAME }}" == "hotfix" ]]; then
124+
IMAGE_TAG="hotfix"
123125
else
124126
IMAGE_TAG="latest"
125127
fi

.github/workflows/test-automation.yml

Lines changed: 14 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,6 @@
11
name: Test Automation MACAE
22

33
on:
4-
push:
5-
branches:
6-
- main
7-
- dev
8-
- hotfix
9-
paths:
10-
- "tests/e2e-test/**"
11-
schedule:
12-
- cron: "0 13 * * *"
134
workflow_dispatch:
145
workflow_call:
156
inputs:
@@ -56,12 +47,12 @@ jobs:
5647
with:
5748
creds: '{"clientId":"${{ secrets.AZURE_CLIENT_ID }}","clientSecret":"${{ secrets.AZURE_CLIENT_SECRET }}","subscriptionId":"${{ secrets.AZURE_SUBSCRIPTION_ID }}","tenantId":"${{ secrets.AZURE_TENANT_ID }}"}'
5849

59-
- name: Start Container App
60-
uses: azure/cli@v2
61-
with:
62-
azcliversion: "latest"
63-
inlineScript: |
64-
az rest -m post -u "/subscriptions/${{ secrets.AZURE_SUBSCRIPTION_ID }}/resourceGroups/${{ env.MACAE_RG }}/providers/Microsoft.App/containerApps/${{ env.MACAE_CONTAINER_APP }}/start?api-version=2025-01-01"
50+
# - name: Start Container App
51+
# uses: azure/cli@v2
52+
# with:
53+
# azcliversion: "latest"
54+
# inlineScript: |
55+
# az rest -m post -u "/subscriptions/${{ secrets.AZURE_SUBSCRIPTION_ID }}/resourceGroups/${{ env.MACAE_RG }}/providers/Microsoft.App/containerApps/${{ env.MACAE_CONTAINER_APP }}/start?api-version=2025-01-01"
6556

6657
- name: Install dependencies
6758
run: |
@@ -188,11 +179,11 @@ jobs:
188179
-H "Content-Type: application/json" \
189180
-d "$EMAIL_BODY" || echo "Failed to send notification"
190181
191-
- name: Stop Container App
192-
if: always()
193-
uses: azure/cli@v2
194-
with:
195-
azcliversion: "latest"
196-
inlineScript: |
197-
az rest -m post -u "/subscriptions/${{ secrets.AZURE_SUBSCRIPTION_ID }}/resourceGroups/${{ env.MACAE_RG }}/providers/Microsoft.App/containerApps/${{ env.MACAE_CONTAINER_APP }}/stop?api-version=2025-01-01"
198-
az logout
182+
# - name: Stop Container App
183+
# if: always()
184+
# uses: azure/cli@v2
185+
# with:
186+
# azcliversion: "latest"
187+
# inlineScript: |
188+
# az rest -m post -u "/subscriptions/${{ secrets.AZURE_SUBSCRIPTION_ID }}/resourceGroups/${{ env.MACAE_RG }}/providers/Microsoft.App/containerApps/${{ env.MACAE_CONTAINER_APP }}/stop?api-version=2025-01-01"
189+
# az logout

0 commit comments

Comments
 (0)