Skip to content

Commit

Permalink
fix deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
YassineKADER committed May 29, 2024
1 parent 6a7d65e commit 693db62
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/deployGcp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ env:
PROJECT_ID: ${{ secrets.GCP_PROJECT_ID }}
GAR_LOCATION: us-central1
SERVICE_NAME: bemyeyes-backend
ENV_FILE: ${{ secrets.ENV_FILE }}
SERVICE_ACCOUNT_TRANSCRIPTION: ${{ secrets.SERVICE_ACCOUNT_TRANSCRIPTION }}

jobs:
deploy:
Expand All @@ -32,6 +34,8 @@ jobs:
GITHUB_SHA: ${{ github.sha }}
run: |
gcloud auth configure-docker
echo "$SERVICE_ACCOUNT_TRANSCRIPTION" > gcp_service_account.json
echo "$ENV_FILE" > .env
docker build -t gcr.io/${PROJECT_ID}/${SERVICE_NAME}:${GITHUB_SHA} .
docker push gcr.io/${PROJECT_ID}/${SERVICE_NAME}:${GITHUB_SHA}
Expand Down

0 comments on commit 693db62

Please sign in to comment.