mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-06-17 01:59:08 +00:00
fix api.tf var refs, upgrade node action
This commit is contained in:
parent
9ae9c104ef
commit
8de34cedd8
2 changed files with 5 additions and 29 deletions
32
.github/workflows/build.yml
vendored
32
.github/workflows/build.yml
vendored
|
@ -11,21 +11,10 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@master
|
||||||
|
|
||||||
- uses: actions/setup-node@v2.1.5
|
- uses: actions/setup-node@v2.5.1
|
||||||
with:
|
with:
|
||||||
node-version: '16'
|
node-version: '16'
|
||||||
|
cache: yarn
|
||||||
- name: Get yarn cache directory path
|
|
||||||
id: yarn-cache-dir-path
|
|
||||||
run: echo "::set-output name=dir::$(yarn cache dir)"
|
|
||||||
|
|
||||||
- uses: actions/cache@v2.1.6
|
|
||||||
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
|
|
||||||
with:
|
|
||||||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
|
||||||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-yarn-
|
|
||||||
|
|
||||||
- run: yarn install --frozen-lockfile
|
- run: yarn install --frozen-lockfile
|
||||||
|
|
||||||
|
@ -45,9 +34,10 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@master
|
||||||
|
|
||||||
- uses: actions/setup-node@v2.1.5
|
- uses: actions/setup-node@v2.5.1
|
||||||
with:
|
with:
|
||||||
node-version: '16'
|
node-version: '16'
|
||||||
|
cache: yarn
|
||||||
|
|
||||||
- id: 'auth'
|
- id: 'auth'
|
||||||
uses: 'google-github-actions/auth@v0'
|
uses: 'google-github-actions/auth@v0'
|
||||||
|
@ -67,20 +57,6 @@ jobs:
|
||||||
&& echo ::set-output name=skip::1 \
|
&& echo ::set-output name=skip::1 \
|
||||||
|| echo ::set-output name=skip::0
|
|| echo ::set-output name=skip::0
|
||||||
|
|
||||||
- name: Get yarn cache directory path
|
|
||||||
if: steps.check.outputs.skip == '0'
|
|
||||||
id: yarn-cache-dir-path
|
|
||||||
run: echo "::set-output name=dir::$(yarn cache dir)"
|
|
||||||
|
|
||||||
- uses: actions/cache@v2.1.6
|
|
||||||
if: steps.check.outputs.skip == '0'
|
|
||||||
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
|
|
||||||
with:
|
|
||||||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
|
||||||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-yarn-
|
|
||||||
|
|
||||||
- run: yarn install --frozen-lockfile
|
- run: yarn install --frozen-lockfile
|
||||||
if: steps.check.outputs.skip == '0'
|
if: steps.check.outputs.skip == '0'
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@ resource "cloudflare_workers_kv_namespace" "guild_data" {
|
||||||
|
|
||||||
resource "cloudflare_worker_script" "backend" {
|
resource "cloudflare_worker_script" "backend" {
|
||||||
name = "roleypoly-backend-${var.environment_tag}"
|
name = "roleypoly-backend-${var.environment_tag}"
|
||||||
content = file("${path.module}/${var.api_path_to_worker}")
|
content = file("${path.module}/${var.path_to_worker}")
|
||||||
|
|
||||||
kv_namespace_binding {
|
kv_namespace_binding {
|
||||||
name = "KV_SESSIONS"
|
name = "KV_SESSIONS"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue