Skip to content

Commit

Permalink
CHORE: update to golang 1.21
Browse files Browse the repository at this point in the history
  • Loading branch information
fileformat committed Nov 1, 2023
1 parent 62df85a commit b4e347a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/appengine-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,25 @@ jobs:
- name: Checkout
uses: actions/checkout@v1

# Setup gcloud CLI
- uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
- name: GCloud auth
id: 'auth'
uses: 'google-github-actions/auth@v0'
with:
version: '275.0.0'
service_account_email: ${{ secrets.GCP_SA_EMAIL }}
service_account_key: ${{ secrets.GCP_SA_KEY }}
credentials_json: '${{ secrets.GCP_SA_KEY }}'

- name: GCloud setup
uses: google-github-actions/setup-gcloud@v0

- name: Install yq
run: sudo snap install yq

- name: Set COMMIT
run: |
yq write --inplace ./app.yaml env_variables.COMMIT ${GITHUB_SHA:0:7}
SHORT_SHA=${GITHUB_SHA:0:7} yq '.env_variables.COMMIT = strenv(SHORT_SHA)' --inplace ./app.yaml
- name: Set LASTMODIFIED
run: |
yq write --inplace ./app.yaml env_variables.LASTMOD "$(date -u +%Y-%m-%dT%H:%M:%SZ)"
LASTMOD="$(date -u +%Y-%m-%dT%H:%M:%SZ)" yq '.env_variables.LASTMOD = strenv(LASTMOD)' --inplace ./app.yaml
- name: Deploy to AppEngine
run: |
Expand Down
2 changes: 1 addition & 1 deletion app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
"COMMIT": "dev",
"LASTMOD": "dev",
},
"runtime": "go112"
"runtime": "go121"
}
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module ae-geo

go 1.12
go 1.21

0 comments on commit b4e347a

Please sign in to comment.