We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 88bbc80 commit 31137f8Copy full SHA for 31137f8
1 file changed
.github/workflows/validate.yml
@@ -0,0 +1,27 @@
1
+name: Validate docker-compose
2
+
3
+on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
8
9
+env:
10
+ APP_IMAGE: ghcr.io/rmdes/newsdiff:main
11
12
+jobs:
13
+ validate:
14
+ runs-on: ubuntu-latest
15
+ steps:
16
+ - uses: actions/checkout@v4
17
18
+ - name: Validate docker-compose.yml
19
+ run: docker compose config --quiet
20
21
+ - name: Check nginx config syntax
22
+ run: docker run --rm -v "$PWD/nginx.conf:/etc/nginx/nginx.conf:ro" nginx:alpine nginx -t
23
24
+ - name: Verify GHCR image exists
25
+ run: |
26
+ echo "Checking $APP_IMAGE..."
27
+ docker manifest inspect "$APP_IMAGE" > /dev/null 2>&1 && echo "Image exists" || echo "::warning::Image not found on GHCR"
0 commit comments