Skip to content

Commit

Permalink
Deploy correct_02+tg_bot_serv make serv
Browse files Browse the repository at this point in the history
  • Loading branch information
terapevt1981 committed Nov 11, 2024
1 parent bf353ed commit eefb2ec
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/gcp-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ jobs:
- name: Build and Push Telegram Bot Service
run: |
cd telegram_bot_service
docker build -t europe-west12-docker.pkg.dev/${{ secrets.GCP_PROJECT_ID }}/telegram-bot/telegram-bot-service:${{ github.sha }} .
docker build -t europe-west12-docker.pkg.dev/${{ secrets.GCP_PROJECT_ID }}/telegram-bot/service:${{ github.sha }} .
gcloud auth configure-docker europe-west12-docker.pkg.dev
docker push europe-west12-docker.pkg.dev/${{ secrets.GCP_PROJECT_ID }}/telegram-bot/telegram-bot-service:${{ github.sha }}
docker push europe-west12-docker.pkg.dev/${{ secrets.GCP_PROJECT_ID }}/telegram-bot/service:${{ github.sha }}
# Деплой в Cloud Run (если применимо)
- name: Deploy to Cloud Run Transport Service
Expand All @@ -104,6 +104,7 @@ jobs:
--image europe-west12-docker.pkg.dev/$PROJECT_ID/transport-service/service:$GITHUB_SHA \
--platform managed \
--region europe-west12 \
--service-account=923903653655-compute@developer.gserviceaccount.com \
--allow-unauthenticated \
--set-env-vars "DATABASE_URL=${{ secrets.TRANSPORT_SERVICE_DATABASE_URL }},PORT=8080"
Expand All @@ -116,6 +117,7 @@ jobs:
--image europe-west12-docker.pkg.dev/$PROJECT_ID/translation-service/service:$GITHUB_SHA \
--platform managed \
--region europe-west12 \
--service-account=923903653655-compute@developer.gserviceaccount.com \
--allow-unauthenticated \
--set-env-vars "DATABASE_URL=${{ secrets.TRANSLATION_SERVICE_DATABASE_URL }},PORT=8080"
Expand All @@ -125,8 +127,9 @@ jobs:
GITHUB_SHA: ${{ github.sha }}
run: |
gcloud run deploy telegram-bot \
--image europe-west12-docker.pkg.dev/$PROJECT_ID/telegram-bot/telegram-bot-service:$GITHUB_SHA \
--image europe-west12-docker.pkg.dev/$PROJECT_ID/telegram-bot/service:$GITHUB_SHA \
--platform managed \
--region europe-west12 \
--service-account=923903653655-compute@developer.gserviceaccount.com \
--allow-unauthenticated \
--set-env-vars "TRANSPORT_SERVICE_URL=${{ secrets.TRANSPORT_SERVICE_URL }},TELEGRAM_BOT_TOKEN=${{ secrets.TELEGRAM_BOT_TOKEN }},PORT=8080"
--set-env-vars "TRANSPORT_SERVICE_URL=${{ secrets.TRANSPORT_SERVICE_URL }},TELEGRAM_BOT_TOKEN=${{ secrets.TELEGRAM_BOT_TOKEN }},PORT=8080"

0 comments on commit eefb2ec

Please sign in to comment.