Add comprehensive OpenAPI 3.0.3 specification for eDiscovery BFF API … #5
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 Push Docker Image to GCR | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Set up QEMU | |
| uses: docker/setup-qemu-action@v3 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Authenticate to GCP | |
| uses: google-github-actions/auth@v1 | |
| with: | |
| project_id: bustling-syntax-439308-h6 | |
| credentials_json: ${{ secrets.GCP_SA_KEY }} | |
| - name: Configure Docker for GCR | |
| run: gcloud auth configure-docker --quiet | |
| - name: Build, tag, and push Docker image to GCR | |
| env: | |
| GCR_REPOSITORY: gcr.io/bustling-syntax-439308-h6/ediscovery | |
| IMAGE_TAG: latest | |
| run: | | |
| docker build -t $GCR_REPOSITORY:$IMAGE_TAG . | |
| docker push $GCR_REPOSITORY:$IMAGE_TAG |