Skip to content

Instantly share code, notes, and snippets.

@a4amaan
Forked from cabrerahector/bitbucket-pipelines.yml
Created March 23, 2021 10:51
Show Gist options
  • Save a4amaan/0e99c8d0c265581078cf3627b866301d to your computer and use it in GitHub Desktop.
Save a4amaan/0e99c8d0c265581078cf3627b866301d to your computer and use it in GitHub Desktop.
Bitbucket Pipelines - Deploying to Server with atlassian/ftp-deploy
image: atlassian/default-image:2
pipelines:
branches:
master:
- step:
name: Deploy to Production
deployment: production
script:
- pipe: atlassian/ftp-deploy:0.3.5
variables:
USER: $FTP_USERNAME
PASSWORD: $FTP_PASSWORD
SERVER: $FTP_HOST
REMOTE_PATH: /public_html
DELETE_FLAG: 'false' # Don't delete existing files
EXTRA_ARGS: "--exclude=.bitbucket/ --exclude=.git/ --exclude=bitbucket-pipelines.yml --exclude=.gitignore" # Ignore these
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment