Skip to content

Commit

Permalink
Fixes docker registry error
Browse files Browse the repository at this point in the history
  • Loading branch information
dimtsap committed Apr 9, 2022
1 parent 3023517 commit 5552629
Showing 1 changed file with 46 additions and 46 deletions.
92 changes: 46 additions & 46 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,49 +165,49 @@ jobs:
displayName: Upload conda packages
condition: eq(variables['Build.SourceBranch'], 'refs/heads/master')
#- job: "Create_Docker_images"
# dependsOn: Build_UQpy_and_run_tests
# pool:
# vmImage: "ubuntu-latest"
# steps:
# - task: gitversion/setup@0
# displayName: Setup GitVersion
# condition: eq(variables['Build.SourceBranch'], 'refs/heads/master')
# inputs:
# versionSpec: '5.x'
#
# - task: gitversion/execute@0
# displayName: Calculate GitVersion
# condition: eq(variables['Build.SourceBranch'], 'refs/heads/master')
# inputs:
# useConfigFile: true
# configFilePath: 'GitVersion.yml'
#
# - task: Docker@2
# displayName: Login to Dockerhub
# condition: eq(variables['Build.SourceBranch'], 'refs/heads/master')
# inputs:
# containerRegistry: 'docker_registry_uqpy'
# command: 'login'
#
# - powershell: |
# echo "Current version: $(GitVersion.SemVer)"
# displayName: Shows currently compiling version
# condition: eq(variables['Build.SourceBranch'], 'refs/heads/master')
#
# - task: Docker@2
# displayName: Build and push packages to Dockerhub
# condition: eq(variables['Build.SourceBranch'], 'refs/heads/master')
# inputs:
# containerRegistry: 'docker_registry_uqpy'
# command: 'buildAndPush'
# repository: 'surgroup/uqpy'
# Dockerfile: 'Dockerfile'
# tags: '$(GitVersion.SemVer)'
#
# - task: Docker@2
# displayName: Logout from Dockerhub
# condition: eq(variables['Build.SourceBranch'], 'refs/heads/master')
# inputs:
# containerRegistry: 'docker_registry_uqpy'
# command: 'logout'
- job: "Create_Docker_images"
dependsOn: Build_UQpy_and_run_tests
pool:
vmImage: "ubuntu-latest"
steps:
- task: gitversion/setup@0
displayName: Setup GitVersion
condition: eq(variables['Build.SourceBranch'], 'refs/heads/master')
inputs:
versionSpec: '5.x'

- task: gitversion/execute@0
displayName: Calculate GitVersion
condition: eq(variables['Build.SourceBranch'], 'refs/heads/master')
inputs:
useConfigFile: true
configFilePath: 'GitVersion.yml'

- task: Docker@2
displayName: Login to Dockerhub
condition: eq(variables['Build.SourceBranch'], 'refs/heads/master')
inputs:
containerRegistry: 'docker_registry_surg'
command: 'login'

- powershell: |
echo "Current version: $(GitVersion.SemVer)"
displayName: Shows currently compiling version
condition: eq(variables['Build.SourceBranch'], 'refs/heads/master')
- task: Docker@2
displayName: Build and push packages to Dockerhub
condition: eq(variables['Build.SourceBranch'], 'refs/heads/master')
inputs:
containerRegistry: 'docker_registry_surg'
command: 'buildAndPush'
repository: 'surgroup/uqpy'
Dockerfile: 'Dockerfile'
tags: '$(GitVersion.SemVer)'

- task: Docker@2
displayName: Logout from Dockerhub
condition: eq(variables['Build.SourceBranch'], 'refs/heads/master')
inputs:
containerRegistry: 'docker_registry_surg'
command: 'logout'

0 comments on commit 5552629

Please sign in to comment.