Last active
January 24, 2024 14:17
-
-
Save cabrerahector/773198231e0bf46d6dceb7117ba4fc30 to your computer and use it in GitHub Desktop.
Bitbucket Pipelines - Deploying to staging / production server with atlassian/ftp-deploy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
image: atlassian/default-image:2 | |
pipelines: | |
branches: | |
master: | |
- 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 | |
staging: | |
- step: | |
name: Deploy to Staging | |
deployment: staging | |
script: | |
- pipe: atlassian/ftp-deploy:0.3.7 | |
variables: | |
USER: $STAGING_FTP_USERNAME | |
PASSWORD: $STAGING_FTP_PASSWORD | |
SERVER: $STAGING_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