Skip to content

Commit

Permalink
Merge pull request #245 from ThatConference/bouncer/chore/node-20
Browse files Browse the repository at this point in the history
Bouncer update for node 20
  • Loading branch information
brettski authored Dec 1, 2023
2 parents ffca439 + d5e44ae commit 32179ea
Show file tree
Hide file tree
Showing 6 changed files with 6,074 additions and 5,230 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/bouncer_PullRequest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ on:
jobs:
build:
name: build bouncer
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

steps:
- name: Checkout PR
uses: actions/checkout@v3
- name: Use Node.js 16
- name: Use Node.js 20
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 20
- name: npm ci, run validate
run: |
cd functions/bouncer
Expand Down
25 changes: 15 additions & 10 deletions .github/workflows/bouncer_PushMaster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ on:
jobs:
build:
name: Build bouncer
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Use Node.js 16
- name: Use Node.js 20
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 20
- name: npm ci, run validate
run: |
cd functions/bouncer
Expand All @@ -31,11 +31,12 @@ jobs:
run: |
cd functions/bouncer
pwd
npm pkg delete scripts.build
cp ./package.json __build__/
cp ./package-lock.json __build__/
git rev-list --count master > __build__/ccnt.txt
- name: Archive Build Artifact
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v3
with:
name: tc-api
path: functions/bouncer/__build__
Expand All @@ -53,17 +54,21 @@ jobs:
deploy-image:
name: Deploy Bouncer
needs: build
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Download Build Artifact
uses: actions/download-artifact@v1
uses: actions/download-artifact@v3
with:
name: tc-api
path: tc-api
- name: Setup google auth for github actions
uses: google-github-actions/auth@v1
with:
credentials_json: ${{ secrets.GCLOUD_AUTH }}
- name: Setup gcloud Actions
uses: google-github-actions/setup-gcloud@v0
uses: google-github-actions/setup-gcloud@v1
with:
version: '397.0.0'
service_account_key: ${{ secrets.GCLOUD_AUTH }}
version: "437.0.1"
project_id: ${{ secrets.GCP_PROJECT_ID }}
- name: write .env file
run: |
Expand All @@ -86,7 +91,7 @@ jobs:
echo $PWD
ls -lasiR
- name: Run GCP Deploy Function - bouncer
run: gcloud functions deploy bouncer --runtime nodejs16 --trigger-http --source $PWD/tc-api --allow-unauthenticated --entry-point handler --memory 256MB
run: gcloud functions deploy bouncer --runtime nodejs20 --trigger-http --source $PWD/tc-api --allow-unauthenticated --entry-point handler --memory 256MB
env:
CLOUDSDK_CORE_PROJECT: ${{ secrets.GCP_PROJECT_ID }}
- name: Slack Notification
Expand Down
2 changes: 1 addition & 1 deletion functions/bouncer/.node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16.16.0
20.10.0
Loading

0 comments on commit 32179ea

Please sign in to comment.