File tree Expand file tree Collapse file tree 3 files changed +46
-4
lines changed Expand file tree Collapse file tree 3 files changed +46
-4
lines changed Original file line number Diff line number Diff line change
1
+ name : Build and deploy to Google AppEngine
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+
8
+ # Environment variables available to all jobs and steps in this workflow
9
+ env :
10
+ PROJECT_ID : ${{ secrets.GCP_PROJECT }}
11
+
12
+ jobs :
13
+ setup-build-deploy :
14
+ name : Setup, Build, and Deploy
15
+ runs-on : ubuntu-latest
16
+
17
+ steps :
18
+ - name : Checkout
19
+ uses : actions/checkout@v1
20
+
21
+ # Setup gcloud CLI
22
+ - uses : GoogleCloudPlatform/github-actions/setup-gcloud@master
23
+ with :
24
+ version : ' 275.0.0'
25
+ service_account_email : ${{ secrets.GCP_SA_EMAIL }}
26
+ service_account_key : ${{ secrets.GCP_SA_KEY }}
27
+
28
+ - name : Install yq
29
+ run : sudo snap install yq
30
+
31
+ - name : Set COMMIT
32
+ run : |
33
+ yq write --inplace ./app.yaml env_variables.COMMIT ${GITHUB_SHA:0:7}
34
+
35
+ - name : Set LASTMODIFIED
36
+ run : |
37
+ yq write --inplace ./app.yaml env_variables.LASTMOD "$(date -u +%Y-%m-%dT%H:%M:%SZ)"
38
+
39
+ - name : Deploy to AppEngine
40
+ run : |
41
+ gcloud app deploy --project=${PROJECT_ID} --quiet
Original file line number Diff line number Diff line change 1
- application : regexplanet-go
2
- version : 2
3
1
runtime : go113
4
2
handlers :
5
3
- url : /favicon.ico
@@ -12,8 +10,8 @@ handlers:
12
10
static_files : robots.txt
13
11
upload : robots.txt
14
12
- url : /.*
15
- script : _go_app
13
+ script : auto
16
14
env_variables :
17
15
COMMIT : dev
18
16
LASTMOD : dev
19
- main : ./web
17
+ main : src/regexplanet.go
Original file line number Diff line number Diff line change
1
+ module github.com/regexplanet/regexplanet-go
2
+
3
+ go 1.13
You can’t perform that action at this time.
0 commit comments