Skip to content

build(deps): bump google.golang.org/grpc from 1.35.0 to 1.56.3 in /api #367

build(deps): bump google.golang.org/grpc from 1.35.0 to 1.56.3 in /api

build(deps): bump google.golang.org/grpc from 1.35.0 to 1.56.3 in /api #367

Workflow file for this run

name: API Build & Deploy
on:
push:
paths:
- '.github/workflows/api.yml'
- 'api/**'
- '!api/README.md'
jobs:
test:
name: Run Test Suite
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run Tests
run: |
curl -O https://storage.googleapis.com/firebase-preview-drop/emulator/cloud-firestore-emulator-v1.11.7.jar
java -jar cloud-firestore-emulator-v1.11.7.jar &
sleep 2
. .env.ci
make coverage
bin/upload-coverage
working-directory: api
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
build-api:
name: "Build/Push Docker Image"
needs: test
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v2
- uses: RafikFarhad/[email protected]
with:
gcloud_service_key: ${{ secrets.GCP_SA_KEY }}
registry: gcr.io
project_id: silken-phalanx-305703
image_name: snap-api
image_tag: ${{ github.sha }}
context: ./api
dockerfile: ./api/Dockerfile
deploy-development-api:
name: "[D] Deploy API"
needs: build-api
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/dev'
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/deploy-api
with:
GCP_SA_KEY: ${{ secrets.GCP_SA_KEY }}
GCP_PROJECT_ID: silken-phalanx-305703
CONTAINER_REPO: gcr.io/silken-phalanx-305703/snap-api
deploy-development-jobrunner:
name: "[D] Build/Deploy JobRunner"
needs: test
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/dev'
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/deploy-snap-job
with:
GCP_SA_KEY: ${{ secrets.GCP_SA_KEY }}
GCP_PROJECT_ID: silken-phalanx-305703
deploy-sandbox-api:
name: "[S] Deploy API"
needs: build-api
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/deploy-api
with:
GCP_SA_KEY: ${{ secrets.SANDBOX_GCP_SA_KEY }}
GCP_PROJECT_ID: ds-snap-sandbox
CONTAINER_REPO: gcr.io/silken-phalanx-305703/snap-api
deploy-sandbox-jobrunner:
needs: test
name: "[S] Build/Deploy JobRunner"
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/deploy-snap-job
with:
GCP_SA_KEY: ${{ secrets.SANDBOX_GCP_SA_KEY }}
GCP_PROJECT_ID: ds-snap-sandbox
deploy-production-api:
name: "[P] Deploy API"
needs: build-api
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/deploy-api
with:
GCP_SA_KEY: ${{ secrets.PRODUCTION_GCP_SA_KEY }}
GCP_PROJECT_ID: ds-snap-production
CONTAINER_REPO: gcr.io/silken-phalanx-305703/snap-api
deploy-production-jobrunner:
needs: test
name: "[P] Build/Deploy JobRunner"
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/deploy-snap-job
with:
GCP_SA_KEY: ${{ secrets.PRODUCTION_GCP_SA_KEY }}
GCP_PROJECT_ID: ds-snap-production