/favicon

Primary LanguageGo

favicon

Setup

mkdir -p $GOPATH/src/github.com/s-aska
cd $GOPATH/src/github.com/s-aska
git clone git@github.com:s-aska/favicon.git

Install

Installing Go

brew install go

Installing SDK and GAE/Go Components

Installing Cloud SDK

curl https://sdk.cloud.google.com | bash
exec -l $SHELL
gcloud init
gcloud components install app-engine-go

Installing dependency

make installdeps

Running the local development server

make dev-app

Deployment command

make deploy-app

Deployment App Engine

git push origin master -> Cloud Build -> https://YOUR_PROJECT_ID.appspot.com/

How to Setup

See https://cloud.google.com/source-repositories/docs/quickstart-triggering-builds-with-source-repositories

  1. [PROJECT_NUMBER]@cloudbuild.gserviceaccount.com Add App Engine Admin role IAM
  2. Enable the Google App Engine Admin API App Engine Admin API
  3. Add Trigger Cloud Build
    1. Select Source GitHub
    2. Choose Repository
    3. Click Cloud Build 構成ファイル(yaml または json)
    4. Settings Branches or Tags rule
    5. Create