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:
script:
npm install --legacy-peer-deps
npm run half-prod
artifacts:
public/**
step:
name: Deploy artifacts using SCP to PROD
deployment: production
script:
variables:
USER: $USER
SERVER: $SERVER
REMOTE_PATH: ‘/home/shalaw/guidedby-react/public’
LOCAL_PATH: ‘public/*’
SSH_KEY: $SSH_KEY
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!