keep trying to push to GH pkg reg, but don't fail the build if it fails

This commit is contained in:
Collin M. Barrett 2019-09-30 15:39:50 -05:00
parent 649ad5e84d
commit e711f4b9a8
2 changed files with 4 additions and 10 deletions

View file

@ -116,7 +116,6 @@ steps:
additionalDockerComposeFiles: "docker-compose.prod.yml"
dockerComposeCommand: "build api"
condition: "and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))"
enabled: false #TODO: enable after https://github.community/t5/GitHub-Actions/unknown-blob-error-when-i-m-trying-to-push-image-to-Github/m-p/32737/highlight/true#M1237
- task: Docker@2
displayName: "tag build number"
@ -126,7 +125,6 @@ steps:
command: "tag"
arguments: "docker.pkg.github.com/collinbarrett/filterlists/filterlists.api:latest docker.pkg.github.com/collinbarrett/filterlists/filterlists.api:$(Build.BuildId)"
condition: "and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))"
enabled: false #TODO: enable after https://github.community/t5/GitHub-Actions/unknown-blob-error-when-i-m-trying-to-push-image-to-Github/m-p/32737/highlight/true#M1237
- task: Docker@2
displayName: "push"
@ -138,7 +136,6 @@ steps:
latest
$(Build.BuildId)
condition: "and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))"
enabled: false #TODO: enable after https://github.community/t5/GitHub-Actions/unknown-blob-error-when-i-m-trying-to-push-image-to-Github/m-p/32737/highlight/true#M1237
- task: CopyFiles@2
displayName: "stage docker-compose files"
@ -150,8 +147,8 @@ steps:
TargetFolder: "$(Build.ArtifactStagingDirectory)"
CleanTargetFolder: true
OverWrite: true
condition: "and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))"
enabled: false #TODO: enable after https://github.community/t5/GitHub-Actions/unknown-blob-error-when-i-m-trying-to-push-image-to-Github/m-p/32737/highlight/true#M1237
# condition: "and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))"
condition: "and(eq(variables['Build.SourceBranch'], 'refs/heads/master'))"
- task: PublishBuildArtifacts@1
displayName: "publish docker-compose files"
@ -160,4 +157,3 @@ steps:
ArtifactName: "drop"
publishLocation: "Container"
condition: "and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))"
enabled: false #TODO: enable after https://github.community/t5/GitHub-Actions/unknown-blob-error-when-i-m-trying-to-push-image-to-Github/m-p/32737/highlight/true#M1237

View file

@ -53,7 +53,6 @@ steps:
latest
$(Build.BuildId)
condition: "and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))"
enabled: false #TODO: enable after https://github.community/t5/GitHub-Actions/unknown-blob-error-when-i-m-trying-to-push-image-to-Github/m-p/32737/highlight/true#M1237
- task: CopyFiles@2
displayName: "stage docker-compose files"
@ -65,8 +64,8 @@ steps:
TargetFolder: "$(Build.ArtifactStagingDirectory)"
CleanTargetFolder: true
OverWrite: true
condition: "and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))"
enabled: false #TODO: enable after https://github.community/t5/GitHub-Actions/unknown-blob-error-when-i-m-trying-to-push-image-to-Github/m-p/32737/highlight/true#M1237
# condition: "and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))"
condition: "and(eq(variables['Build.SourceBranch'], 'refs/heads/master'))"
- task: PublishBuildArtifacts@1
displayName: "publish docker-compose files"
@ -75,4 +74,3 @@ steps:
ArtifactName: "drop"
publishLocation: "Container"
condition: "and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))"
enabled: false #TODO: enable after https://github.community/t5/GitHub-Actions/unknown-blob-error-when-i-m-trying-to-push-image-to-Github/m-p/32737/highlight/true#M1237