backend is ready for deployment #91
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
| #.github/workflows/backend-ci.yml | |
| name: Backend CI | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Build Docker image | |
| run: | | |
| docker build -t greenplate-backend . | |
| - name: Run container (sanity check) | |
| run: | | |
| docker run -d -p 8000:8000 \ | |
| -e FIREBASE_SERVICE_ACCOUNT=/dev/null \ | |
| greenplate-backend |