Skip to content

Commit

Permalink
perf(ci): only publish artifacts on git version tags of main
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
raynatopedrajeta committed May 22, 2024
1 parent 514dc68 commit a3a4972
Show file tree
Hide file tree
Showing 20 changed files with 99 additions and 80 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/all-nodejs-packages-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ env:
NODEJS_VERSION: v18.18.2

on:
push:
pull_request:
branches:
- main
- dev

# Publish `v1.2.3` tags as releases.
push:
tags:
- v*

Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/besu-all-in-one-publish.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
name: besu-all-in-one-publish

on:
push:
# Publish `main` as Docker `latest` image.
branches:
pull_request:
branches:
- main
- dev
# Publish `v1.2.3` tags as releases.

# Publish `v1.2.3` tags as releases.
push:
tags:
- v*

Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/cmd-api-server-publish.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
name: cmd-api-server-publish

on:
push:
# Publish `main` as Docker `latest` image.
branches:
pull_request:
branches:
- main
- dev
# Publish `v1.2.3` tags as releases.

# Publish `v1.2.3` tags as releases.
push:
tags:
- v*

Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/connector-besu-publish.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
name: connector-fabric-publish

on:
push:
# Publish `main` as Docker `latest` image.
branches:
pull_request:
branches:
- main
- dev
# Publish `v1.2.3` tags as releases.

# Publish `v1.2.3` tags as releases.
push:
tags:
- v*

Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/connector-corda-server-publish.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: connector-corda-server-publish

on:
push:
# Publish `main` as Docker `latest` image.
branches:
pull_request:
branches:
- main

# Publish `v1.2.3` tags as releases.
- dev
# Publish `v1.2.3` tags as releases.
push:
tags:
- v*

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
name: corda-4-6-all-in-one-obligation-publish

on:
push:
# Publish `main` as Docker `latest` image.
branches:
pull_request:
branches:
- main
- dev
# Publish `v1.2.3` tags as releases.

# Publish `v1.2.3` tags as releases.
push:
tags:
- v*

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
name: corda-4-7-all-in-one-obligation-publish

on:
push:
# Publish `main` as Docker `latest` image.
branches:
pull_request:
branches:
- main
- dev

# Publish `v1.2.3` tags as releases.
# Publish `v1.2.3` tags as releases.
push:
tags:
- v*

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
name: corda-4-8-all-in-one-obligation-publish

on:
push:
# Publish `main` as Docker `latest` image.
branches:
pull_request:
branches:
- main
- dev

# Publish `v1.2.3` tags as releases.
# Publish `v1.2.3` tags as releases.
push:
tags:
- v*

Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/dev-container-vscode-publish.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
name: dev-container-vscode-publish

on:
push:
# Publish `main` as Docker `latest` image.
branches:
pull_request:
branches:
- main
- dev

# Publish `v1.2.3` tags as releases.
# Publish `v1.2.3` tags as releases.
push:
tags:
- v*

Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/example-carbon-accounting-publish.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
name: example-carbon-accounting-publish

on:
push:
# Publish `main` as Docker `latest` image.
branches:
pull_request:
branches:
- main
- dev

# Publish `v1.2.3` tags as releases.
# Publish `v1.2.3` tags as releases.
push:
tags:
- v*

Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/example-supply-chain-app-publish.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
name: example-supply-chain-app-publish

on:
push:
# Publish `main` as Docker `latest` image.
branches:
pull_request:
branches:
- main

# Publish `v1.2.3` tags as releases.
- dev

# Publish `v1.2.3` tags as releases.
push:
tags:
- v*

Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/fabric-all-in-one-publish.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
name: fabric-all-in-one-publish

on:
push:
# Publish `main` as Docker `latest` image.
branches:
pull_request:
branches:
- main
- dev

# Publish `v1.2.3` tags as releases.
# Publish `v1.2.3` tags as releases.
push:
tags:
- v*

Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/fabric2-all-in-one-publish.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
name: fabric2-all-in-one-publish

on:
push:
# Publish `main` as Docker `latest` image.
branches:
pull_request:
branches:
- main
- dev

# Publish `v1.2.3` tags as releases.
# Publish `v1.2.3` tags as releases.
push:
tags:
- v*

Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/geth-all-in-one-publish.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
name: geth-all-in-one-publish

on:
push:
# Publish `main` as Docker `latest` image.
branches:
pull_request:
branches:
- main
- dev

# Publish `v1.2.3` tags as releases.
# Publish `v1.2.3` tags as releases.
push:
tags:
- v*

Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/ghpkg-all-kotlin-api-clients-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@ env:
NODEJS_VERSION: v18.18.2

on:
push:
branches: [main, dev]

pull_request:
branches: [main, dev]
branches:
- main
- dev

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/iroha2-all-in-one-publish.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
name: iroha2-all-in-one-publish

on:
push:
# Publish `main` as Docker `latest` image.
branches:
pull_request:
branches:
- main
- dev

# Publish `v1.2.3` tags as releases.
# Publish `v1.2.3` tags as releases.
push:
tags:
- v*

Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/keychain-vault-server-publish.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
name: keychain-vault-server-publish

on:
push:
# Publish `main` as Docker `latest` image.
branches:
pull_request:
branches:
- main
- dev

# Publish `v1.2.3` tags as releases.
# Publish `v1.2.3` tags as releases.
push:
tags:
- v*

Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/quorum-all-in-one-publish.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
name: quorum-all-in-one-publish

on:
push:
# Publish `main` as Docker `latest` image.
branches:
pull_request:
branches:
- main
- dev

# Publish `v1.2.3` tags as releases.
# Publish `v1.2.3` tags as releases.
push:
tags:
- v*

Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/quorum-multi-party-all-in-one-publish.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
name: quorum-multi-party-all-in-one-publish

on:
push:
# Publish `main` as Docker `latest` image.
branches:
pull_request:
branches:
- main
- dev

# Publish `v1.2.3` tags as releases.
# Publish `v1.2.3` tags as releases.
push:
tags:
- v*

Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/sawtooth-all-in-one-publish.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
name: sawtooth-all-in-one-publish

on:
push:
# Publish `main` as Docker `latest` image.
branches:
pull_request:
branches:
- main
- dev

# Publish `v1.2.3` tags as releases.
# Publish `v1.2.3` tags as releases.
push:
tags:
- v*

Expand Down

0 comments on commit a3a4972

Please sign in to comment.