From 408277a47d054eebc9e55bff40f08e5def9990b4 Mon Sep 17 00:00:00 2001 From: "raynato.c.pedrajeta" Date: Wed, 22 May 2024 15:26:08 +0800 Subject: [PATCH] perf(ci): only publish artifacts on git version tags of main Primary Changes ---------------- 1. Remove auto publishing of container images in all **publish.yaml upon push and maintain automation runs during pull requests Fixes #2360 Signed-off-by: raynato.c.pedrajeta --- .github/workflows/all-nodejs-packages-publish.yaml | 2 -- .github/workflows/besu-all-in-one-publish.yaml | 6 +----- .github/workflows/cmd-api-server-publish.yaml | 6 +----- .github/workflows/connector-besu-publish.yaml | 6 +----- .github/workflows/connector-corda-server-publish.yaml | 6 +----- .github/workflows/connector-fabric-publish.yaml | 5 ----- .../corda-4-6-all-in-one-obligation-publish.yaml | 6 +----- .../corda-4-7-all-in-one-obligation-publish.yaml | 6 +----- .../corda-4-8-all-in-one-obligation-publish.yaml | 6 +----- .github/workflows/dev-container-vscode-publish.yaml | 6 +----- .github/workflows/example-carbon-accounting-publish.yaml | 6 +----- .github/workflows/example-supply-chain-app-publish.yaml | 8 ++------ .github/workflows/fabric-all-in-one-publish.yaml | 6 +----- .github/workflows/fabric2-all-in-one-publish.yaml | 6 +----- .github/workflows/geth-all-in-one-publish.yaml | 6 +----- .../workflows/ghpkg-all-kotlin-api-clients-publish.yaml | 7 +++---- .github/workflows/iroha2-all-in-one-publish.yaml | 6 +----- .github/workflows/keychain-vault-server-publish.yaml | 6 +----- .github/workflows/quorum-all-in-one-publish.yaml | 6 +----- .../workflows/quorum-multi-party-all-in-one-publish.yaml | 6 +----- .github/workflows/sawtooth-all-in-one-publish.yaml | 6 +----- 21 files changed, 22 insertions(+), 102 deletions(-) diff --git a/.github/workflows/all-nodejs-packages-publish.yaml b/.github/workflows/all-nodejs-packages-publish.yaml index 1f73d7e8c32..d58692028b2 100644 --- a/.github/workflows/all-nodejs-packages-publish.yaml +++ b/.github/workflows/all-nodejs-packages-publish.yaml @@ -5,8 +5,6 @@ env: on: push: - - # Publish `v1.2.3` tags as releases. tags: - v* diff --git a/.github/workflows/besu-all-in-one-publish.yaml b/.github/workflows/besu-all-in-one-publish.yaml index bddcf5189d3..4630682b28d 100644 --- a/.github/workflows/besu-all-in-one-publish.yaml +++ b/.github/workflows/besu-all-in-one-publish.yaml @@ -1,12 +1,8 @@ name: besu-all-in-one-publish on: + # Publish `v1.2.3` tags as releases. push: - # Publish `main` as Docker `latest` image. - branches: - - main - - # Publish `v1.2.3` tags as releases. tags: - v* diff --git a/.github/workflows/cmd-api-server-publish.yaml b/.github/workflows/cmd-api-server-publish.yaml index efc3dbde092..8c050b26356 100644 --- a/.github/workflows/cmd-api-server-publish.yaml +++ b/.github/workflows/cmd-api-server-publish.yaml @@ -1,12 +1,8 @@ name: cmd-api-server-publish on: + # Publish `v1.2.3` tags as releases. push: - # Publish `main` as Docker `latest` image. - branches: - - main - - # Publish `v1.2.3` tags as releases. tags: - v* diff --git a/.github/workflows/connector-besu-publish.yaml b/.github/workflows/connector-besu-publish.yaml index 6d3b14a6500..8e293da7416 100644 --- a/.github/workflows/connector-besu-publish.yaml +++ b/.github/workflows/connector-besu-publish.yaml @@ -1,12 +1,8 @@ name: connector-fabric-publish on: + # Publish `v1.2.3` tags as releases. push: - # Publish `main` as Docker `latest` image. - branches: - - main - - # Publish `v1.2.3` tags as releases. tags: - v* diff --git a/.github/workflows/connector-corda-server-publish.yaml b/.github/workflows/connector-corda-server-publish.yaml index 4b86a8c5732..431b8409948 100644 --- a/.github/workflows/connector-corda-server-publish.yaml +++ b/.github/workflows/connector-corda-server-publish.yaml @@ -1,12 +1,8 @@ name: connector-corda-server-publish on: + # Publish `v1.2.3` tags as releases. push: - # Publish `main` as Docker `latest` image. - branches: - - main - - # Publish `v1.2.3` tags as releases. tags: - v* diff --git a/.github/workflows/connector-fabric-publish.yaml b/.github/workflows/connector-fabric-publish.yaml index c634aa5bc88..be38589e9b9 100644 --- a/.github/workflows/connector-fabric-publish.yaml +++ b/.github/workflows/connector-fabric-publish.yaml @@ -1,11 +1,6 @@ name: connector-besu-publish on: - push: - # Publish `main` as Docker `latest` image. - branches: - - main - # Publish `v1.2.3` tags as releases. tags: - v* diff --git a/.github/workflows/corda-4-6-all-in-one-obligation-publish.yaml b/.github/workflows/corda-4-6-all-in-one-obligation-publish.yaml index 8c27d1e1bd5..306f2ce4306 100644 --- a/.github/workflows/corda-4-6-all-in-one-obligation-publish.yaml +++ b/.github/workflows/corda-4-6-all-in-one-obligation-publish.yaml @@ -1,12 +1,8 @@ name: corda-4-6-all-in-one-obligation-publish on: + # Publish `v1.2.3` tags as releases. push: - # Publish `main` as Docker `latest` image. - branches: - - main - - # Publish `v1.2.3` tags as releases. tags: - v* diff --git a/.github/workflows/corda-4-7-all-in-one-obligation-publish.yaml b/.github/workflows/corda-4-7-all-in-one-obligation-publish.yaml index 04e6f966b62..8c4f32af9ac 100644 --- a/.github/workflows/corda-4-7-all-in-one-obligation-publish.yaml +++ b/.github/workflows/corda-4-7-all-in-one-obligation-publish.yaml @@ -1,12 +1,8 @@ name: corda-4-7-all-in-one-obligation-publish on: + # Publish `v1.2.3` tags as releases. push: - # Publish `main` as Docker `latest` image. - branches: - - main - - # Publish `v1.2.3` tags as releases. tags: - v* diff --git a/.github/workflows/corda-4-8-all-in-one-obligation-publish.yaml b/.github/workflows/corda-4-8-all-in-one-obligation-publish.yaml index 9475536e485..959ed3e95cc 100644 --- a/.github/workflows/corda-4-8-all-in-one-obligation-publish.yaml +++ b/.github/workflows/corda-4-8-all-in-one-obligation-publish.yaml @@ -1,12 +1,8 @@ name: corda-4-8-all-in-one-obligation-publish on: + # Publish `v1.2.3` tags as releases. push: - # Publish `main` as Docker `latest` image. - branches: - - main - - # Publish `v1.2.3` tags as releases. tags: - v* diff --git a/.github/workflows/dev-container-vscode-publish.yaml b/.github/workflows/dev-container-vscode-publish.yaml index fc67ee927ce..c51417d5eeb 100644 --- a/.github/workflows/dev-container-vscode-publish.yaml +++ b/.github/workflows/dev-container-vscode-publish.yaml @@ -1,12 +1,8 @@ name: dev-container-vscode-publish on: + # Publish `v1.2.3` tags as releases. push: - # Publish `main` as Docker `latest` image. - branches: - - main - - # Publish `v1.2.3` tags as releases. tags: - v* diff --git a/.github/workflows/example-carbon-accounting-publish.yaml b/.github/workflows/example-carbon-accounting-publish.yaml index eb2f9490a14..33d909c96b9 100644 --- a/.github/workflows/example-carbon-accounting-publish.yaml +++ b/.github/workflows/example-carbon-accounting-publish.yaml @@ -1,12 +1,8 @@ name: example-carbon-accounting-publish on: + # Publish `v1.2.3` tags as releases. push: - # Publish `main` as Docker `latest` image. - branches: - - main - - # Publish `v1.2.3` tags as releases. tags: - v* diff --git a/.github/workflows/example-supply-chain-app-publish.yaml b/.github/workflows/example-supply-chain-app-publish.yaml index e0980cc8257..17da4cbbbc3 100644 --- a/.github/workflows/example-supply-chain-app-publish.yaml +++ b/.github/workflows/example-supply-chain-app-publish.yaml @@ -1,12 +1,8 @@ name: example-supply-chain-app-publish -on: +on: + # Publish `v1.2.3` tags as releases. push: - # Publish `main` as Docker `latest` image. - branches: - - main - - # Publish `v1.2.3` tags as releases. tags: - v* diff --git a/.github/workflows/fabric-all-in-one-publish.yaml b/.github/workflows/fabric-all-in-one-publish.yaml index 71e7db3efb7..aad8f22aa3e 100644 --- a/.github/workflows/fabric-all-in-one-publish.yaml +++ b/.github/workflows/fabric-all-in-one-publish.yaml @@ -1,12 +1,8 @@ name: fabric-all-in-one-publish on: + # Publish `v1.2.3` tags as releases. push: - # Publish `main` as Docker `latest` image. - branches: - - main - - # Publish `v1.2.3` tags as releases. tags: - v* diff --git a/.github/workflows/fabric2-all-in-one-publish.yaml b/.github/workflows/fabric2-all-in-one-publish.yaml index 4b0da1903c3..03b50c84d3b 100644 --- a/.github/workflows/fabric2-all-in-one-publish.yaml +++ b/.github/workflows/fabric2-all-in-one-publish.yaml @@ -1,12 +1,8 @@ name: fabric2-all-in-one-publish on: + # Publish `v1.2.3` tags as releases. push: - # Publish `main` as Docker `latest` image. - branches: - - main - - # Publish `v1.2.3` tags as releases. tags: - v* diff --git a/.github/workflows/geth-all-in-one-publish.yaml b/.github/workflows/geth-all-in-one-publish.yaml index 15bda39907d..b9eb108648f 100644 --- a/.github/workflows/geth-all-in-one-publish.yaml +++ b/.github/workflows/geth-all-in-one-publish.yaml @@ -1,12 +1,8 @@ name: geth-all-in-one-publish on: + # Publish `v1.2.3` tags as releases. push: - # Publish `main` as Docker `latest` image. - branches: - - main - - # Publish `v1.2.3` tags as releases. tags: - v* diff --git a/.github/workflows/ghpkg-all-kotlin-api-clients-publish.yaml b/.github/workflows/ghpkg-all-kotlin-api-clients-publish.yaml index 3cf6dd75192..f76f605ccdf 100644 --- a/.github/workflows/ghpkg-all-kotlin-api-clients-publish.yaml +++ b/.github/workflows/ghpkg-all-kotlin-api-clients-publish.yaml @@ -4,11 +4,10 @@ env: NODEJS_VERSION: v18.18.2 on: + # Publish `v1.2.3` tags as releases. push: - branches: [main, dev] - - pull_request: - branches: [main, dev] + tags: + - v* concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} diff --git a/.github/workflows/iroha2-all-in-one-publish.yaml b/.github/workflows/iroha2-all-in-one-publish.yaml index 48d94402b43..e2ae6c9cb94 100644 --- a/.github/workflows/iroha2-all-in-one-publish.yaml +++ b/.github/workflows/iroha2-all-in-one-publish.yaml @@ -1,12 +1,8 @@ name: iroha2-all-in-one-publish on: + # Publish `v1.2.3` tags as releases. push: - # Publish `main` as Docker `latest` image. - branches: - - main - - # Publish `v1.2.3` tags as releases. tags: - v* diff --git a/.github/workflows/keychain-vault-server-publish.yaml b/.github/workflows/keychain-vault-server-publish.yaml index 80c5bbf5cf0..81d0622b400 100644 --- a/.github/workflows/keychain-vault-server-publish.yaml +++ b/.github/workflows/keychain-vault-server-publish.yaml @@ -1,12 +1,8 @@ name: keychain-vault-server-publish on: + # Publish `v1.2.3` tags as releases. push: - # Publish `main` as Docker `latest` image. - branches: - - main - - # Publish `v1.2.3` tags as releases. tags: - v* diff --git a/.github/workflows/quorum-all-in-one-publish.yaml b/.github/workflows/quorum-all-in-one-publish.yaml index 0bbd413551e..b4c24959192 100644 --- a/.github/workflows/quorum-all-in-one-publish.yaml +++ b/.github/workflows/quorum-all-in-one-publish.yaml @@ -1,12 +1,8 @@ name: quorum-all-in-one-publish on: + # Publish `v1.2.3` tags as releases. push: - # Publish `main` as Docker `latest` image. - branches: - - main - - # Publish `v1.2.3` tags as releases. tags: - v* diff --git a/.github/workflows/quorum-multi-party-all-in-one-publish.yaml b/.github/workflows/quorum-multi-party-all-in-one-publish.yaml index 3ea17ee9384..f686fb0be8b 100644 --- a/.github/workflows/quorum-multi-party-all-in-one-publish.yaml +++ b/.github/workflows/quorum-multi-party-all-in-one-publish.yaml @@ -1,12 +1,8 @@ name: quorum-multi-party-all-in-one-publish on: + # Publish `v1.2.3` tags as releases. push: - # Publish `main` as Docker `latest` image. - branches: - - main - - # Publish `v1.2.3` tags as releases. tags: - v* diff --git a/.github/workflows/sawtooth-all-in-one-publish.yaml b/.github/workflows/sawtooth-all-in-one-publish.yaml index 2fd11499199..ebde8de1b1d 100644 --- a/.github/workflows/sawtooth-all-in-one-publish.yaml +++ b/.github/workflows/sawtooth-all-in-one-publish.yaml @@ -1,12 +1,8 @@ name: sawtooth-all-in-one-publish on: + # Publish `v1.2.3` tags as releases. push: - # Publish `main` as Docker `latest` image. - branches: - - main - - # Publish `v1.2.3` tags as releases. tags: - v*