Deploy your Go app on Google App Engine with GitHub Actions

TL;DR It seems that there were various ways to deploy the Go app to Google App Engine with GitHub Actions, but now it seems better to use Action called google-github-actions / setup-gcloud provided by Google.

Secrets settings

Set the GCP project ID in GCP_PROJECT_ID. Set the GCP service account key in GCP_SA_KEY. The service account can be the default one. When migrating from another service, don't forget to delete the past key.

workflow file


name: "Deploy"

      - master


    runs-on: ubuntu-latest

    - name: Checkout repository
      uses: actions/[email protected]

    - name: Set up Cloud SDK
      uses: google-github-actions/[email protected]
        project_id: ${{ secrets.GCP_PROJECT_ID }}
        service_account_key: ${{ secrets.GCP_SA_KEY }}
        export_default_credentials: true

    - name: Use gcloud CLI
      run: gcloud app deploy --quiet app/web/app.yaml

At first I forgot to add --quiet and got an error.


I was able to move to GitHub Actions more easily than I expected. Let's use everyone!

Recommended Posts

Deploy your Go app on Google App Engine with GitHub Actions
Deploy a Python app on Google App Engine and integrate it with GitHub
I can't deploy with google app engine
Deploy a Django application on Google App Engine (Python3)
PIL with Python on Windows 8 (for Google App Engine)
Google App Engine development with Docker
Use ndb.tasklet on Google App Engine
Building a development environment with Maven on Google App Engine [Java]
Using properties files with Flexible Environment Java 8 on Google App Engine
[Python] Run Flask on Google App Engine
Use external modules on Google App Engine
Deploy from GitHub Actions to Azure App Service
Tweet (API 1.1) on Google App Engine for Python
(Beginner) Basic usage of Datastore on Google App Engine
How to use Django on Google App Engine / Python
Deploy a Django app made with PTVS on Azure
Hello World with Google App Engine (Java 8) + Spring Boot + Gradle
Hello World with Google App Engine (Java 8) + Servlet API 3.1 + Gradle
Deploy masonite app on Heroku 2020
Hello World with Google App Engine (Java 11) + Spring Boot + Gradle
Publish the site for free on Google App Engine (personal memorandum)
Deploy your Django application on Heroku
Java 1 1 support from Google App Engine
Deploy Flask app on heroku (bitterly)
Deploy the Flask app on Heroku
Deploy the Flask app on heroku
Play with Turtle on Google Colab
Until you deploy a SpringBoot project in Gradle on App Engine Flexible
Build your Django app on Docker and deploy it to AWS Fargate
Deploy flask app with mod_wsgi (using pipenv)
Deploy the Django app on Heroku [Part 2]
Deploy the Django app on Heroku [Part 1]
[Google App Engine] User Objects (Japanese translation)
Create your first app with Django startproject
Machine learning with Pytorch on Google Colab
Use Django's ImageField on App Engine / Python
[Golang] Create docker image with Github Actions
Verify coordinates on Google Map with Geocoder
Turn off optimization options in the Google App Engine Go development environment
Check when the HTML obtained by Requests on Google App Engine is garbled