From 6c212eb3888c02584b86605d793e4c1fda57eb02 Mon Sep 17 00:00:00 2001
From: Paul Abel
Date: Wed, 26 Jun 2024 12:16:48 +0100
Subject: [PATCH 1/2] update release skip job logic
---
.github/workflows/release.yml | 22 +++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index dfefdec696..4b7e0e053d 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -115,7 +115,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.NGINX_PAT }}
release-oss:
- if: ${{ ! contains(inputs.skip_step, 'release-oss') }}
+ if: ${{ ! cancelled() && ! failure() && ! contains(inputs.skip_step, 'release-oss') }}
name: Release Docker OSS
needs: [variables]
uses: ./.github/workflows/oss-release.yml
@@ -136,7 +136,7 @@ jobs:
secrets: inherit
release-plus:
- if: ${{ ! contains(inputs.skip_step, 'release-plus') }}
+ if: ${{ ! cancelled() && ! failure() && ! contains(inputs.skip_step, 'release-plus') }}
name: Release Docker Plus
needs: [variables]
uses: ./.github/workflows/plus-release.yml
@@ -156,7 +156,7 @@ jobs:
secrets: inherit
publish-helm-chart:
- if: ${{ ! inputs.dry_run && ! contains(inputs.skip_step, 'publish-helm-chart') }}
+ if: ${{ ! cancelled() && ! failure() && ! inputs.dry_run && ! contains(inputs.skip_step, 'publish-helm-chart') }}
name: Publish Helm Chart
uses: ./.github/workflows/publish-helm.yml
with:
@@ -170,7 +170,7 @@ jobs:
secrets: inherit
certify-openshift-images:
- if: ${{ ! inputs.dry_run && ! contains(inputs.skip_step, 'certify-openshift-images') }}
+ if: ${{ ! cancelled() && ! failure() && ! inputs.dry_run && ! contains(inputs.skip_step, 'certify-openshift-images') }}
name: Certify OpenShift UBI images
runs-on: ubuntu-22.04
needs: [release-oss]
@@ -189,7 +189,7 @@ jobs:
pyxis_token: ${{ secrets.PYXIS_API_TOKEN }}
operator:
- if: ${{ ! inputs.dry_run && ! contains(inputs.skip_step, 'operator') && !contains(inputs.skip_step, 'publish-helm-chart') }}
+ if: ${{ ! cancelled() && ! failure() && ! inputs.dry_run && ! contains(inputs.skip_step, 'operator') && !contains(inputs.skip_step, 'publish-helm-chart') }}
name: Trigger PR for Operator
runs-on: ubuntu-22.04
needs: [publish-helm-chart]
@@ -210,7 +210,7 @@ jobs:
})
gcp-marketplace:
- if: ${{ ! inputs.dry_run && ! contains(inputs.skip_step, 'gcp-marketplace') }}
+ if: ${{ ! cancelled() && ! failure() && ! inputs.dry_run && ! contains(inputs.skip_step, 'gcp-marketplace') }}
name: Trigger PR for GCP Marketplace
runs-on: ubuntu-22.04
needs: [publish-helm-chart]
@@ -231,7 +231,7 @@ jobs:
})
azure-marketplace:
- if: ${{ ! inputs.dry_run && ! contains(inputs.skip_step, 'azure-marketplace') }}
+ if: ${{ ! cancelled() && ! failure() && ! inputs.dry_run && ! contains(inputs.skip_step, 'azure-marketplace') }}
name: Trigger CNAB Build for Azure Marketplace
runs-on: ubuntu-22.04
needs: [publish-helm-chart]
@@ -254,7 +254,7 @@ jobs:
})
aws-marketplace:
- if: ${{ ! inputs.dry_run && ! contains(inputs.skip_step, 'aws-marketplace') }}
+ if: ${{ ! cancelled() && ! failure() && ! inputs.dry_run && ! contains(inputs.skip_step, 'aws-marketplace') }}
name: Publish to AWS Marketplace
runs-on: ubuntu-22.04
needs: [release-plus]
@@ -341,7 +341,7 @@ jobs:
if: ${{ needs.variables.outputs.binary_cache_sign_hit != 'true' }}
azure-upload:
- if: ${{ ! contains(inputs.skip_step, 'azure-upload') }}
+ if: ${{ ! cancelled() && ! failure() && ! contains(inputs.skip_step, 'azure-upload') }}
name: Upload packages to Azure
runs-on: ubuntu-22.04
needs: [variables, binaries]
@@ -384,7 +384,7 @@ jobs:
done
github-release:
- if: ${{ ! contains(inputs.skip_step, 'github-release') }}
+ if: ${{ ! cancelled() && ! failure() && ! contains(inputs.skip_step, 'github-release') }}
name: Publish release to GitHub
runs-on: ubuntu-22.04
needs: [variables, binaries, release-oss, release-plus, azure-upload]
@@ -483,7 +483,7 @@ jobs:
if: ${{ ! inputs.dry_run }}
release-image-notification:
- if: ${{ ! inputs.dry_run && ! contains(inputs.skip_step, 'release-image-notification') }}
+ if: ${{ ! cancelled() && ! failure() && ! inputs.dry_run && ! contains(inputs.skip_step, 'release-image-notification') }}
name: Notify Slack channels about image release
runs-on: ubuntu-22.04
needs: [variables, binaries, release-oss, release-plus]
From d047886c7bcded75b84caa37ad53903a2a9249f9 Mon Sep 17 00:00:00 2001
From: Paul Abel
Date: Wed, 26 Jun 2024 13:29:11 +0100
Subject: [PATCH 2/2] remove binary script debug
---
.github/scripts/create-release-tarballs.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/scripts/create-release-tarballs.sh b/.github/scripts/create-release-tarballs.sh
index 11dd8b6581..4954c4dfe5 100755
--- a/.github/scripts/create-release-tarballs.sh
+++ b/.github/scripts/create-release-tarballs.sh
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
-set -ex
+set -e
directory=$1
version=$2