From e711f4b9a84f746a85c13b88d4e4e5605c633369 Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Mon, 30 Sep 2019 15:39:50 -0500 Subject: [PATCH] keep trying to push to GH pkg reg, but don't fail the build if it fails --- azure-pipelines.api.yaml | 8 ++------ azure-pipelines.web.yaml | 6 ++---- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/azure-pipelines.api.yaml b/azure-pipelines.api.yaml index b6121dfe8..50210c7dd 100644 --- a/azure-pipelines.api.yaml +++ b/azure-pipelines.api.yaml @@ -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 diff --git a/azure-pipelines.web.yaml b/azure-pipelines.web.yaml index b5b7ccb6a..8549216d8 100644 --- a/azure-pipelines.web.yaml +++ b/azure-pipelines.web.yaml @@ -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