-
Notifications
You must be signed in to change notification settings - Fork 71
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
TL;DR
The Node.js buildpack was just recently updated to automatically run npm run build. You can disable this by setting the build environment variable of GOOGLE_NODE_RUN_SCRIPTS to a blank value. This doesn't seem possible today with how the environment variables are parsed.
Expected behavior
I expected to be able to set the GOOGLE_NODE_RUN_SCRIPTS variable to a blank value within the build_environment_variables input.
Observed behavior
You need to provide some value to the environment variable or it will fail to be parsed. If you pass a value, like "" then you get the actual value of "" rather than a blank value.
Action YAML
name: cd
on:
push:
branches: ['main']
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: false
jobs:
deploy-function:
runs-on: ubuntu-latest
permissions:
contents: 'read'
id-token: 'write'
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 2
- id: 'auth'
uses: 'google-github-actions/auth@v1'
with:
workload_identity_provider: 'projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider'
service_account: 'my-service-account@my-project.iam.gserviceaccount.com'
- uses: google-github-actions/deploy-cloud-functions@v1
with:
name: myFunction
runtime: nodejs18
build_environment_variables: "GOOGLE_NODE_RUN_SCRIPTS="Log output
Run google-github-actions/deploy-cloud-functions@v1
with:
name: myFunction
runtime: nodejs18
region: us-central1
docker_registry: artifact-registry
build_environment_variables: GOOGLE_NODE_RUN_SCRIPTS=
Error: google-github-actions/deploy-cloud-functions failed with: failed to parse KEY=VALUE pair "GOOGLE_NODE_RUN_SCRIPTS=": no value
Additional information
I'd be happy to help out with this issue if needed.
NickDub and edieval
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working