It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

gcloud specify app.yaml for nuxt application

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

2 answers

0 votes

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. 

0 votes

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

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket Pipelines

What We Learned When We Researched Open Source Vulnerabilities in 7 Popular Coding Languages

...hey are a part of us, shaping how we interact with the world around us. The same holds true for programming languages when we think about how different kinds of vulnerabilities raise their heads in t...

1,041 views 0 3
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you