FINAL FIX: Add exact Cloud Run host to allowedHosts #8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build and Deploy | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Build Docker image | |
| run: docker build -t gdg-docs:latest . | |
| - name: Test Docker image | |
| run: | | |
| docker run -d --name test-container -p 8080:8080 gdg-docs:latest | |
| sleep 10 | |
| curl -f http://localhost:8080 || exit 1 | |
| docker stop test-container |