I'm trying to deploy a nuxt application to gcloud. The pipeline runs and deploys just fine but I get 404 errors from the gcloud app instance.
Locally running
gcloud app deploy app.yaml --project $GCLOUD_PROJECT
works just fine, as you can see I'm specifying app.yaml which configures all the routing information for nuxt (see app.yaml example below).
My thinking is that app.yaml is not being considered in the deploy, however reading the docs, I can't seen any specific key to define this as a variable.
bitbucket-pipelines.yaml
....
- step:
name: Build
caches:
- node
script:
- npm install
- npm run build
artifacts:
- .nuxt/**
- step:
name: Deploy
script:
- pipe: atlassian/google-app-engine-deploy:0.2.1
variables:
KEY_FILE: $KEY_FILE
PROJECT: $GCLOUD_PROJECT
# HOW TO I SPECIFY app.yaml as the app engine configuration?
# app.yaml
runtime: nodejs10
instance_class: F2
handlers:
- url: /_nuxt
static_dir: .nuxt/dist/client
secure: always
- url: /(.*\.(gif|png|jpg|ico|txt))$
static_files: static/\1
upload: static/.*\.(gif|png|jpg|ico|txt)$
secure: always
- url: /.*
script: auto
secure: always
env_variables:
HOST: '0.0.0.0'
NODE_ENV: 'production'
Any help would be greatly appreciated. Cheers
Hi Andrew. Just wanted to let you know that we've release the 0.3.0 version of the pipe with the support for multiple deployment configs. From now on, you can use the DEPLOYABLES variable to provide multiple yaml files:
script: - pipe: atlassian/google-app-engine-deploy:0.3.0 variables: KEY_FILE: $KEY_FILE PROJECT: 'my-project' DEPLOYABLES: 'app-1.yaml app-2.yaml'
You can also check out the docs for the new pipe version here https://bitbucket.org/atlassian/google-app-engine-deploy/src/master/README.md
Hi Andrew. You can you EXTRA_ARGS to specify different deployables:
EXTRA_ARGS: 'app.yaml'
Here is a similar question https://community.atlassian.com/t5/Bitbucket-Pipelines-questions/GAE-deployment-queries/qaq-p/1043706
Also, we're working on adding a first class support for passing multiple deployable yml files to the pipe.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.