File tree Expand file tree Collapse file tree 5 files changed +13
-11
lines changed Expand file tree Collapse file tree 5 files changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: build
33on :
44 push :
55 branches :
6- - master
6+ - main
77
88# Environment variables available to all jobs and steps in this workflow
99env :
@@ -18,23 +18,25 @@ jobs:
1818 - name : Checkout
1919 uses : actions/checkout@v1
2020
21- # Setup gcloud CLI
22- - uses : GoogleCloudPlatform/github-actions/setup-gcloud@master
21+ - name : gcloud auth
22+ id : ' auth'
23+ uses : ' google-github-actions/auth@v2'
2324 with :
24- version : ' 275.0.0'
25- service_account_email : ${{ secrets.GCP_SA_EMAIL }}
26- service_account_key : ${{ secrets.GCP_SA_KEY }}
25+ credentials_json : ' ${{ secrets.GCP_SA_KEY }}'
26+
27+ - name : gcloud setup
28+ uses : google-github-actions/setup-gcloud@v2
2729
2830 - name : Install yq
2931 run : sudo snap install yq
3032
3133 - name : Set COMMIT
3234 run : |
33- yq write --inplace . /app.yaml env_variables.COMMIT ${GITHUB_SHA:0:7}
35+ COMMIT=${GITHUB_SHA:0:7} yq -i '.env_variables.COMMIT = strenv(COMMIT)' . /app.yaml
3436
3537 - name : Set LASTMODIFIED
3638 run : |
37- yq write --inplace ./app.yaml env_variables. LASTMOD " $(date -u +%Y-%m-%dT%H:%M:%SZ)"
39+ LASTMOD= $(date -u +%Y-%m-%dT%H:%M:%SZ) yq -i '.env_variables.LASTMOD = strenv(LASTMOD)' ./app.yaml
3840
3941 - name : Deploy to AppEngine
4042 run : |
Original file line number Diff line number Diff line change 1- runtime : go113
1+ runtime : go122
22handlers :
33- url : /favicon.ico
44 static_files : favicon.ico
Original file line number Diff line number Diff line change 11module github.com/regexplanet/regexplanet-go
22
3- go 1.13
3+ go 1.22
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- /usr/local/google_appengine-go/dev_appserver.py --port=8081 .
3+ go run src/regexplanet.go
You can’t perform that action at this time.
0 commit comments