Skip to content

Commit 447d45e

Browse files
committed
chore: build container images for accessibility scanner
1 parent e683c06 commit 447d45e

1 file changed

Lines changed: 18 additions & 2 deletions

File tree

.github/workflows/a11y-scan.yaml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ on:
88
- a11y-scanner-setup
99

1010
jobs:
11+
build:
12+
uses: ./.github/workflows/build-container-images.yaml
13+
1114
accessibility_scanner:
15+
needs: build
1216
runs-on: ubuntu-latest
1317
permissions:
1418
contents: read
@@ -48,8 +52,14 @@ jobs:
4852
exit 1
4953
fi
5054
55+
- uses: actions/download-artifact@v8
56+
with:
57+
name: backend
58+
path: /tmp/
59+
5160
- name: Start backend
5261
run: |
62+
docker load --input /tmp/backend.tar
5363
docker run -d \
5464
--network a11y-network \
5565
--name backend \
@@ -61,14 +71,20 @@ jobs:
6171
-e AUTH_INITIAL_ADMIN_USERNAME="${{ env.AUTH_INITIAL_ADMIN_USERNAME }}" \
6272
-e AUTH_INITIAL_ADMIN_PASSWORD="${{ env.AUTH_INITIAL_ADMIN_PASSWORD }}" \
6373
-e SESSION_SECRET="a11y-scanner-session-secret" \
64-
ghcr.io/codecentric/c4-genai-suite/backend:latest
74+
backend:commit-${{ github.sha }}
75+
76+
- uses: actions/download-artifact@v8
77+
with:
78+
name: frontend
79+
path: /tmp/
6580

6681
- name: Start frontend
6782
run: |
83+
docker load --input /tmp/frontend.tar
6884
docker run -d \
6985
--network a11y-network \
7086
--name frontend \
71-
ghcr.io/codecentric/c4-genai-suite/frontend:latest
87+
frontend:commit-${{ github.sha }}
7288
7389
- name: Start gateway proxy
7490
run: |

0 commit comments

Comments
 (0)