Skip to content

Instantly share code, notes, and snippets.

@rahulmr
Forked from cabrerahector/bitbucket-pipelines.yml
Created March 13, 2023 08:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rahulmr/b119aab22b5b00b885faa58fe56724f7 to your computer and use it in GitHub Desktop.
Save rahulmr/b119aab22b5b00b885faa58fe56724f7 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.3.7
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