Created
March 22, 2020 20:40
-
-
Save maxday/2347271f3e9a9ec14ce8468e028adb80 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 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