Skip to content

Commit 3783197

Browse files
Refactor paths in workflow and configuration files to remove 'content-gen' prefix
1 parent 515e724 commit 3783197

11 files changed

+49
-55
lines changed

.github/dependabot.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ updates:
1818
# Python (pip) dependencies - grouped
1919
- package-ecosystem: "pip"
2020
directories:
21-
- "/content-gen/src/backend"
22-
- "/content-gen/infra/vscode_web"
23-
- "/content-gen/scripts"
21+
- "/src/backend"
22+
- "/infra/vscode_web"
23+
- "/scripts"
2424
schedule:
2525
interval: "monthly"
2626
target-branch: "dependabotchanges"
@@ -35,8 +35,8 @@ updates:
3535
# npm dependencies - grouped
3636
- package-ecosystem: "npm"
3737
directories:
38-
- "/content-gen/src/app/frontend"
39-
- "/content-gen/src/app/frontend-server"
38+
- "/src/app/frontend"
39+
- "/src/app/frontend-server"
4040
schedule:
4141
interval: "monthly"
4242
target-branch: "dependabotchanges"

.github/workflows/deploy-v2.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ on:
44
branches:
55
- main
66
paths:
7-
- 'content-gen/src/**'
8-
- '!content-gen/src/tests/**'
9-
- 'content-gen/infra/**/*.bicep'
10-
- 'content-gen/infra/**/*.json'
11-
- 'content-gen/*.yaml'
12-
- 'content-gen/scripts/**'
7+
- 'src/**'
8+
- '!src/tests/**'
9+
- 'infra/**/*.bicep'
10+
- 'infra/**/*.json'
11+
- '*.yaml'
12+
- 'scripts/**'
1313
- '.github/workflows/deploy-*.yml'
1414
workflow_run:
1515
workflows: ["Build Docker and Optional Push"]

.github/workflows/docker-build.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ on:
77
- dev
88
- demo
99
paths:
10-
- 'content-gen/src/backend/**'
11-
- 'content-gen/src/app/frontend/**'
12-
- 'content-gen/src/app/frontend-server/**'
10+
- 'src/backend/**'
11+
- 'src/app/frontend/**'
12+
- 'src/app/frontend-server/**'
1313
- '.github/workflows/docker-build.yml'
1414
pull_request:
1515
types:
@@ -22,9 +22,9 @@ on:
2222
- dev
2323
- demo
2424
paths:
25-
- 'content-gen/src/backend/**'
26-
- 'content-gen/src/app/frontend/**'
27-
- 'content-gen/src/app/frontend-server/**'
25+
- 'src/backend/**'
26+
- 'src/app/frontend/**'
27+
- 'src/app/frontend-server/**'
2828
- '.github/workflows/docker-build.yml'
2929
workflow_dispatch:
3030

@@ -83,8 +83,8 @@ jobs:
8383
- name: Build and Push Docker Image for Frontend Server
8484
uses: docker/build-push-action@v6
8585
with:
86-
context: ./content-gen/src/app
87-
file: ./content-gen/src/app/WebApp.Dockerfile
86+
context: ./src/app
87+
file: ./src/app/WebApp.Dockerfile
8888
push: ${{ github.ref_name == 'main' || github.ref_name == 'dev' || github.ref_name == 'demo' || github.ref_name == 'dependabotchanges' }}
8989
tags: |
9090
${{ secrets.ACR_LOGIN_SERVER || 'acrlogin.azurecr.io' }}/content-gen-app:${{ steps.determine_tag.outputs.tagname }}
@@ -93,8 +93,8 @@ jobs:
9393
- name: Build and Push Docker Image for Backend Server
9494
uses: docker/build-push-action@v6
9595
with:
96-
context: ./content-gen/src/backend
97-
file: ./content-gen/src/backend/ApiApp.Dockerfile
96+
context: ./src/backend
97+
file: ./src/backend/ApiApp.Dockerfile
9898
push: ${{ github.ref_name == 'main' || github.ref_name == 'dev' || github.ref_name == 'demo' || github.ref_name == 'dependabotchanges' }}
9999
tags: |
100100
${{ secrets.ACR_LOGIN_SERVER || 'acrlogin.azurecr.io' }}/content-gen-api:${{ steps.determine_tag.outputs.tagname }}

.github/workflows/job-deploy-linux.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ jobs:
189189
WAF_ENABLED: ${{ inputs.WAF_ENABLED }}
190190
run: |
191191
if [[ "$WAF_ENABLED" == "true" ]]; then
192-
cp content-gen/infra/main.waf.parameters.json content-gen/infra/main.parameters.json
192+
cp infra/main.waf.parameters.json infra/main.parameters.json
193193
echo "✅ Successfully copied WAF parameters to main parameters file"
194194
else
195195
echo "🔧 Configuring Non-WAF deployment - using default main.parameters.json..."
@@ -226,9 +226,6 @@ jobs:
226226
run: |
227227
set -e
228228
229-
# Change to content-gen directory where azure.yaml lives
230-
cd content-gen
231-
232229
echo "Creating environment..."
233230
azd env new "$ENV_NAME" --no-prompt
234231
echo "Environment created: $ENV_NAME"

.github/workflows/job-deploy-windows.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ jobs:
191191
WAF_ENABLED: ${{ inputs.WAF_ENABLED }}
192192
run: |
193193
if [[ "$WAF_ENABLED" == "true" ]]; then
194-
cp content-gen/infra/main.waf.parameters.json content-gen/infra/main.parameters.json
194+
cp infra/main.waf.parameters.json infra/main.parameters.json
195195
echo "✅ Successfully copied WAF parameters to main parameters file"
196196
else
197197
echo "🔧 Configuring Non-WAF deployment - using default main.parameters.json..."
@@ -229,9 +229,6 @@ jobs:
229229
run: |
230230
$ErrorActionPreference = "Stop"
231231
232-
# Change to content-gen directory where azure.yaml lives
233-
Push-Location content-gen
234-
235232
Write-Host "Creating environment..."
236233
azd env new $env:ENV_NAME --no-prompt
237234
Write-Host "Environment created: $env:ENV_NAME"

.github/workflows/job-deploy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -338,10 +338,10 @@ jobs:
338338
IMAGE_MODEL_MIN_CAPACITY: ${{ env.IMAGE_MODEL_MIN_CAPACITY }}
339339
AZURE_REGIONS: ${{ vars.AZURE_REGIONS }}
340340
run: |
341-
chmod +x content-gen/scripts/checkquota.sh
342-
if ! content-gen/scripts/checkquota.sh; then
341+
chmod +x scripts/checkquota.sh
342+
if ! scripts/checkquota.sh; then
343343
# If quota check fails due to insufficient quota, set the flag
344-
if grep -q "No region with sufficient quota found" content-gen/scripts/checkquota.sh; then
344+
if grep -q "No region with sufficient quota found" scripts/checkquota.sh; then
345345
echo "QUOTA_FAILED=true" >> $GITHUB_ENV
346346
fi
347347
exit 1 # Fail the pipeline if any other failure occurs

.github/workflows/job-docker-build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ jobs:
6565
env:
6666
DOCKER_BUILD_SUMMARY: false
6767
with:
68-
context: ./content-gen/src/app
69-
file: ./content-gen/src/app/WebApp.Dockerfile
68+
context: ./src/app
69+
file: ./src/app/WebApp.Dockerfile
7070
push: true
7171
tags: |
7272
${{ secrets.ACR_TEST_LOGIN_SERVER }}/content-gen-app:${{ steps.generate_docker_tag.outputs.IMAGE_TAG }}
@@ -78,8 +78,8 @@ jobs:
7878
env:
7979
DOCKER_BUILD_SUMMARY: false
8080
with:
81-
context: ./content-gen/src/backend
82-
file: ./content-gen/src/backend/ApiApp.Dockerfile
81+
context: ./src/backend
82+
file: ./src/backend/ApiApp.Dockerfile
8383
push: true
8484
tags: |
8585
${{ secrets.ACR_TEST_LOGIN_SERVER }}/content-gen-api:${{ steps.generate_docker_tag.outputs.IMAGE_TAG }}

.github/workflows/telemetry-template-check.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
branches:
66
- main
77
paths:
8-
- 'content-gen/azure.yaml'
8+
- 'azure.yaml'
99

1010
permissions:
1111
contents: read
@@ -22,13 +22,13 @@ jobs:
2222

2323
- name: Check for required metadata template line
2424
run: |
25-
if grep -E '^\s*#\s*template:\s*content-generation@' content-gen/azure.yaml; then
26-
echo "ERROR: 'template' line is commented out in content-gen/azure.yaml! Please uncomment template line."
25+
if grep -E '^\s*#\s*template:\s*content-generation@' azure.yaml; then
26+
echo "ERROR: 'template' line is commented out in azure.yaml! Please uncomment template line."
2727
exit 1
2828
fi
2929
30-
if ! grep -E '^\s*template:\s*content-generation@' content-gen/azure.yaml; then
31-
echo "ERROR: Required 'template' line is missing in content-gen/azure.yaml! Please add template line for telemetry."
30+
if ! grep -E '^\s*template:\s*content-generation@' azure.yaml; then
31+
echo "ERROR: Required 'template' line is missing in azure.yaml! Please add template line for telemetry."
3232
exit 1
3333
fi
3434
echo "template line is present and not commented."

.github/workflows/test-automation-v2.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
- name: Install dependencies
5252
run: |
5353
python -m pip install --upgrade pip
54-
pip install -r content-gen/tests/e2e-test/requirements.txt
54+
pip install -r tests/e2e-test/requirements.txt
5555
5656
- name: Ensure browsers are installed
5757
run: python -m playwright install --with-deps chromium
@@ -98,7 +98,7 @@ jobs:
9898
else
9999
xvfb-run pytest --html=report/report.html --self-contained-html
100100
fi
101-
working-directory: content-gen/tests/e2e-test
101+
working-directory: tests/e2e-test
102102
continue-on-error: true
103103

104104
- name: Sleep for 30 seconds
@@ -115,7 +115,7 @@ jobs:
115115
else
116116
xvfb-run pytest --html=report/report.html --self-contained-html
117117
fi
118-
working-directory: content-gen/tests/e2e-test
118+
working-directory: tests/e2e-test
119119
continue-on-error: true
120120

121121
- name: Sleep for 60 seconds
@@ -132,7 +132,7 @@ jobs:
132132
else
133133
xvfb-run pytest --html=report/report.html --self-contained-html
134134
fi
135-
working-directory: content-gen/tests/e2e-test
135+
working-directory: tests/e2e-test
136136

137137
- name: Upload test report
138138
id: upload_report
@@ -141,9 +141,9 @@ jobs:
141141
with:
142142
name: test-report
143143
path: |
144-
content-gen/tests/e2e-test/report/*
145-
content-gen/tests/e2e-test/tests/screenshots/*
146-
content-gen/tests/e2e-test/screenshots/*
144+
tests/e2e-test/report/*
145+
tests/e2e-test/tests/screenshots/*
146+
tests/e2e-test/screenshots/*
147147
148148
- name: Generate E2E Test Summary
149149
if: always()

.gitignore

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@ eggs/
3636
*.swo
3737

3838
# Node
39-
/content-gen/src/app/frontend/node_modules/
40-
/content-gen/src/app/frontend-server/node_modules/
41-
/content-gen/src/app/frontend-server/static/
42-
/content-gen/src/app/frontend-server/*.zip
39+
/src/app/frontend/node_modules/
40+
/src/app/frontend-server/node_modules/
41+
/src/app/frontend-server/static/
42+
/src/app/frontend-server/*.zip
4343
node_modules/
4444

4545
# Build output
46-
/content-gen/src/app/static/
47-
/content-gen/src/app/frontend/dist/
46+
/src/app/static/
47+
/src/app/frontend/dist/
4848

4949
# Logs
5050
*.log

0 commit comments

Comments
 (0)