Skip to content

Instantly share code, notes, and snippets.

@cabrerahector
Last active January 24, 2024 14:17
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save cabrerahector/6e4f6f052a8334da47af5f2b363df218 to your computer and use it in GitHub Desktop.
Save cabrerahector/6e4f6f052a8334da47af5f2b363df218 to your computer and use it in GitHub Desktop.
Bitbucket Pipelines - Deploying to Server with atlassian/ftp-deploy with Manual Triggers
image: atlassian/default-image:2
pipelines:
custom:
deploy-to-production:
- step:
name: Deploy to Production
deployment: production
script:
- pipe: atlassian/ftp-deploy:0.7.0
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