Skip to content

Upd: Query user by mobile number #25

Upd: Query user by mobile number

Upd: Query user by mobile number #25

Workflow file for this run

name: Release to staging
on:
push:
branches:
- main
env:
PROJECT_ID: ${{ secrets.GKE_PROJECT }}
GKE_CLUSTER: igrant-cluster
GKE_ZONE: europe-west4-c
DEPLOYMENT_NAME: data4diabetes-staging
IMAGE: igrant-data4diabetes
jobs:
setup-build-publish-deploy:
name: Setup, Build, Publish, and Deploy
runs-on: ubuntu-20.04
environment: production
steps:
- name: Checkout
uses: actions/checkout@v2
# Setup gcloud CLI
- uses: google-github-actions/setup-gcloud@v0
with:
version: "270.0.0"
service_account_key: ${{ secrets.GKE_SA_KEY }}
project_id: ${{ secrets.GKE_PROJECT }}
# Configure Docker to use the gcloud command-line tool as a credential
# helper for authentication
- run: |-
gcloud --quiet auth configure-docker
# Get the GKE credentials so we can deploy to the cluster
- uses: google-github-actions/get-gke-credentials@fb08709ba27618c31c09e014e1d8364b02e5042e
with:
cluster_name: ${{ env.GKE_CLUSTER }}
location: ${{ env.GKE_ZONE }}
credentials: ${{ secrets.GKE_SA_KEY }}
# Build the Docker image
- name: Build
run: |-
docker build \
--tag "eu.gcr.io/$PROJECT_ID/$IMAGE:$GITHUB_SHA" \
--build-arg GITHUB_SHA="$GITHUB_SHA" \
--build-arg GITHUB_REF="$GITHUB_REF" \
-f resources/docker/Dockerfile.prod .
# Push the Docker image to Google Container Registry
- name: Publish
run: |-
docker push "eu.gcr.io/$PROJECT_ID/$IMAGE:$GITHUB_SHA"
# Deploy the Docker image to the GKE cluster
- name: Deploy
run: |-
kubectl set image deployment/$DEPLOYMENT_NAME $DEPLOYMENT_NAME=eu.gcr.io/$PROJECT_ID/$IMAGE:$GITHUB_SHA -n data4diabetes