Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

This bitbucket pipeline fails to build or push to DigitalOcean Droplet

Shalaw Fatah
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 24, 2022

We have a bitbucket repo done with React (GatsbyJS), and WP CMS, it builds normally on my local machine, also through SSH on DigitalOcean droplet. But when I want automate the task through this pipeline, it fails, why? 

image: node:16.14.0

pipelines:
default:
- step:

name: Build Guidedby2

caches:

- node

script:

- npm install --legacy-peer-deps

- npm run half-prod

artifacts:

- public/**

- step:

name: Deploy artifacts using SCP to PROD

deployment: production

script:

- pipe: atlassian/scp-deploy:1.2.1

variables:

USER: $USER

SERVER: $SERVER

REMOTE_PATH: '/home/shalaw/guidedby-react/public'

LOCAL_PATH: 'public/*'

SSH_KEY: $SSH_KEY

0 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

TAGS
AUG Leaders

Atlassian Community Events