-
-
Save ThomasPe/461ac67e45c3b6a2eda835e19e2311d2 to your computer and use it in GitHub Desktop.
SFTP Deployment Pipeline
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
trigger: | |
branches: | |
include: | |
- main | |
pool: | |
vmImage: 'ubuntu-latest' | |
stages: | |
- stage: Deploy_Preview | |
jobs: | |
- job: Deploy | |
steps: | |
- task: CopyFilesOverSSH@0 | |
inputs: | |
sshEndpoint: 'My SFTP Service Connection' | |
sourceFolder: '$(Pipeline.Workspace)/s/myrepo' | |
contents: '**' | |
targetFolder: 'mytargetfolder' | |
cleanTargetFolder: true # requires SSH permissions in addition to SFTP | |
overwrite: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment