Skip to content

Instantly share code, notes, and snippets.

@maxday
Created March 22, 2020 20:40
Show Gist options
  • Save maxday/2347271f3e9a9ec14ce8468e028adb80 to your computer and use it in GitHub Desktop.
Save maxday/2347271f3e9a9ec14ce8468e028adb80 to your computer and use it in GitHub Desktop.
- name: Login to GCP
uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
with:
service_account_email: ${{ secrets.GCP_EMAIL }}
service_account_key: ${{ secrets.GCP_ACCOUNT_KEY }}
project_id: ${{ secrets.GCP_PROJECT }}
export_default_credentials: true
- name: Push the Docker image to GCP
run: |
gcloud auth configure-docker --quiet
docker push gcr.io/${{ secrets.GCP_PROJECT }}/${{ secrets.GCP_APP_NAME }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment