File to automatic deployment using Bitbucket Pipelines
# This is a sample build configuration for PHP.
# Check our guides at https://confluence.atlassian.com/x/e8YWN for more examples.
# Only use spaces to indent your .yml configuration.
# -----
# You can specify a custom docker image from Docker Hub as your build environment.
image: samueldebruyn/debian-git
pipelines:
default:
- step:
name: Deploy to Production
deployment: production
script:
- apt-get update && apt-get install -y unzip
- apt-get -qq install git-ftp
- git push --user $FTP_USERNAME --passwd $FTP_PASSWORD sftp://$FTP_HOST/applications/qdcaahvdsx/public_html/