Skip to content

Instantly share code, notes, and snippets.

@kellobri
Created June 17, 2021 14:26
Show Gist options
  • Save kellobri/2423237275d535dfb7330b00b9ec0c6e to your computer and use it in GitHub Desktop.
Save kellobri/2423237275d535dfb7330b00b9ec0c6e to your computer and use it in GitHub Desktop.
RStudio Connect Deployment Pipeline Template
#
# RStudio Connect Deployment Pipeline Template
# Includes optional steps
#
trigger:
- main
pool:
vmImage: 'ubuntu-latest'
variables:
- group: 'RStudio Connect Vars'
- name: CONTENT_DIRECTORY
value: content-dir
- name: VANITY_NAME
value: azure-devops-template
- name: UNIQ_NAME
value: unique-name-example
steps:
- task: Bash@3
displayName: 'Create Upload Deploy'
inputs:
filePath: 'create-upload-deploy.sh'
env:
CONNECT_API_KEY: $(CONNECT_API_KEY)
- task: Bash@3
displayName: 'Update RunAs User'
inputs:
filePath: 'optional-steps/runas-user.sh'
env:
CONNECT_API_KEY: $(CONNECT_API_KEY)
- task: Bash@3
displayName: 'Set Vanity URL'
inputs:
filePath: 'optional-steps/set-vanity-url.sh'
env:
CONNECT_API_KEY: $(CONNECT_API_KEY)
- task: Bash@3
displayName: 'Update Access Control List'
inputs:
filePath: 'optional-steps/update-acl.sh'
env:
CONNECT_API_KEY: $(CONNECT_API_KEY)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment