Skip to content

Commit

Permalink
add echo key
Browse files Browse the repository at this point in the history
  • Loading branch information
terapevt1981 committed Nov 8, 2024
1 parent 12a11ae commit ad1b0e5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ jobs:
run: |
docker build -t ${{ secrets.GCP_REGION }}-docker.pkg.dev/${{ secrets.GCP_PROJECT_ID }}/telegram-bot/service:${{ github.sha }} ./telegram_bot_service
gcloud auth configure-docker ${{ secrets.GCP_REGION }}-docker.pkg.dev
echo ${{ secrets.GCP_SERVICE_ACCOUNT_KEY }} | base64 -d > /tmp/gcp-key.json
gcloud auth activate-service-account --key-file=/tmp/gcp-key.json
docker push ${{ secrets.GCP_REGION }}-docker.pkg.dev/${{ secrets.GCP_PROJECT_ID }}/telegram-bot/service:${{ github.sha }}
- name: Debug Docker Authentication
Expand All @@ -74,9 +76,6 @@ jobs:
uses: google-github-actions/setup-gcloud@v2

- name: Deploy to GKE
# run: |
# gcloud container clusters get-credentials ${{ secrets.GKE_CLUSTER }} --zone ${{ secrets.GKE_ZONE }}
# kubectl apply -f k8s/
run: |
gcloud container clusters get-credentials ${{ secrets.GKE_CLUSTER }} --location ${{ secrets.GKE_ZONE }}
kubectl apply -f k8s/

0 comments on commit ad1b0e5

Please sign in to comment.