chore: support netlify

This commit is contained in:
Bo-Yi Wu 2020-03-21 11:42:14 +08:00
parent 5f0ed4e6cd
commit 64b6f04133
3 changed files with 15 additions and 1 deletions

View File

@ -10,8 +10,9 @@ A push notification micro server using [Gin](https://github.com/gin-gonic/gin) f
[![codebeat badge](https://codebeat.co/badges/0a4eff2d-c9ac-46ed-8fd7-b59942983390)](https://codebeat.co/projects/github-com-appleboy-gorush)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/c82e0ed283474c5686d705ce64d004f7)](https://www.codacy.com/app/appleboy/gorush?utm_source=github.com&utm_medium=referral&utm_content=appleboy/gorush&utm_campaign=Badge_Grade)
[![Docker Pulls](https://img.shields.io/docker/pulls/appleboy/gorush.svg)](https://hub.docker.com/r/appleboy/gorush/)
[![](https://images.microbadger.com/badges/image/appleboy/gorush.svg)](https://microbadger.com/images/appleboy/gorush "Get your own image badge on microbadger.com")
[![microbadger](https://images.microbadger.com/badges/image/appleboy/gorush.svg)](https://microbadger.com/images/appleboy/gorush "Get your own image badge on microbadger.com")
[![Release](https://github-release-version.herokuapp.com/github/appleboy/gorush/release.svg?style=flat)](https://github.com/appleboy/gorush/releases/latest)
[![Netlify Status](https://api.netlify.com/api/v1/badges/8ab14c9f-44fd-4d9a-8bba-f73f76d253b1/deploy-status)](https://app.netlify.com/sites/gorush/deploys)
## Contents

1
build.sh Executable file
View File

@ -0,0 +1 @@
make build_linux_lambda

12
netlify.toml Normal file
View File

@ -0,0 +1,12 @@
[build]
command = "./build.sh"
functions = "release/linux/lambda"
[build.environment]
GO_IMPORT_PATH = "github.com/appleboy/gorush"
GO111MODULE = "on"
[[redirects]]
from = "/*"
to = "/.netlify/functions/gorush/:splat"
status = 200