Skip to content

Commit

Permalink
gcloud auth in Build and Push
Browse files Browse the repository at this point in the history
  • Loading branch information
terapevt1981 committed Nov 11, 2024
1 parent df948ad commit 106f3f5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/gcp-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,18 +77,21 @@ jobs:
run: |
cd transport_service
docker build -t ${{ env.GCP_REGION }}-docker.pkg.dev/${{ env.PROJECT_ID }}/transport-service/service:${{ github.sha }} .
gcloud auth configure-docker ${{ env.GCP_REGION }}-docker.pkg.dev
docker push ${{ env.GCP_REGION }}-docker.pkg.dev/${{ env.PROJECT_ID }}/transport-service/service:${{ github.sha }}
- name: Build and Push Translation Service
run: |
cd translation_service
docker build -t ${{ env.GCP_REGION }}-docker.pkg.dev/${{ env.PROJECT_ID }}/translation-service/service:${{ github.sha }} .
gcloud auth configure-docker ${{ env.GCP_REGION }}-docker.pkg.dev
docker push ${{ env.GCP_REGION }}-docker.pkg.dev/${{ env.PROJECT_ID }}/translation-service/service:${{ github.sha }}
- name: Build and Push Telegram Bot Service
run: |
cd telegram_bot_service
docker build -t ${{ env.GCP_REGION }}-docker.pkg.dev/${{ env.PROJECT_ID }}/telegram-bot-service/service:${{ github.sha }} .
gcloud auth configure-docker ${{ env.GCP_REGION }}-docker.pkg.dev
docker push ${{ env.GCP_REGION }}-docker.pkg.dev/${{ env.PROJECT_ID }}/telegram-bot-service/service:${{ github.sha }}
# Деплой в Cloud Run (если применимо)
Expand Down

0 comments on commit 106f3f5

Please sign in to comment.