Skip to content

Commit

Permalink
Merge pull request #10 from MiguelPeralvo/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
MiguelPeralvo authored Jun 12, 2020
2 parents 3c9f576 + a4e5844 commit d60a2c7
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ variables:
- group: Pipeline-variables

schedules:
- cron: "18 16 * * *"
- cron: "00 17 * * *"
displayName: Daily midnight build
branches:
include:
Expand All @@ -21,6 +21,7 @@ trigger:
tags:
include:
- v*.*
- prod

paths:
include:
Expand Down Expand Up @@ -133,6 +134,7 @@ stages:
displayName: 'Batch test result'
- stage: Release
dependsOn: []
condition: |
or(
startsWith(variables['Build.SourceBranch'], 'refs/heads/releases'),
Expand All @@ -156,6 +158,32 @@ stages:
echo "Release"
displayName: 'Release stage'
- stage: production
displayName: Deploy release in production
dependsOn: []
condition: eq(variables['Build.SourceBranch'], 'refs/tags/production')
jobs:
- deployment: production
displayName: Deployment of release in production
pool:
vmImage: 'ubuntu-18.04'
environment: production
strategy:
runOnce:
deploy:
steps:
- script: env | sort
displayName: 'Environment / Context'

- task: UsePythonVersion@0
displayName: 'Use Python 3.7'
inputs:
versionSpec: 3.7

- script: |
echo "production"
displayName: 'production stage'
#- script: |
# cat /home/vsts/.databrickscfg
# echo ""
Expand Down

0 comments on commit d60a2c7

Please sign in to comment.