A
A
Anrek2022-02-12 11:35:00
Software Deployment
Anrek, 2022-02-12 11:35:00

How does bitbucket pipline work?

Good afternoon!

I'm trying to set up continuous deployment of an application from the bitbucket master branch to the app engine. I try this pipline:

pipelines:
  branches: 
    master:
      - step:
          name: Build and test the app
          image: node:latest
          script:
            - npm install
            - npm run build


Problems:

1) npm install is successful, but where is node_modules placed after executing the npm install command in bitbucket, if I did not indicate where to deploy yet?

2) npm run build throws an error "Error: error:0308010C:digital envelope routines::unsupported at String.replace ()". I googled - it is recommended to downgrade the node version. However, where I have to lower it, locally everything starts up for me, which means it’s as if I need to change the version of the node remotely on the bitbucket.

Questions on both points:

How can you google it? Which direction to go to figure out what's going on and fix the error?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Karabanov, 2022-02-12
@Anrek

1) Inside a container that is launched from the node:latest
image 2) Never use the latest tag, always specify a specific version

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question