Skip to content

Commit 74adf21

Browse files
committed
UPDATE: use latest version go
1 parent 348d15c commit 74adf21

File tree

5 files changed

+13
-11
lines changed

5 files changed

+13
-11
lines changed

.github/workflows/appengine-deploy.yaml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: build
33
on:
44
push:
55
branches:
6-
- master
6+
- main
77

88
# Environment variables available to all jobs and steps in this workflow
99
env:
@@ -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: |

app.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
runtime: go113
1+
runtime: go122
22
handlers:
33
- url: /favicon.ico
44
static_files: favicon.ico

favicon.ico

9.05 KB
Binary file not shown.

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module github.com/regexplanet/regexplanet-go
22

3-
go 1.13
3+
go 1.22

run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/bash
22

3-
/usr/local/google_appengine-go/dev_appserver.py --port=8081 .
3+
go run src/regexplanet.go

0 commit comments

Comments
 (0)