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 Jul 1, 2024
1 parent ff6e5af commit e73103d
Show file tree
Hide file tree
Showing 20 changed files with 22 additions and 97 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/all-nodejs-packages-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ env:

on:
push:

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

Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/besu-all-in-one-publish.yaml
Original file line number Diff line number Diff line change
@@ -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*

Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/cmd-api-server-publish.yaml
Original file line number Diff line number Diff line change
@@ -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*

Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/connector-besu-publish.yaml
Original file line number Diff line number Diff line change
@@ -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*

Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/connector-corda-server-publish.yaml
Original file line number Diff line number Diff line change
@@ -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*

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

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

# 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,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*

Expand Down
Original file line number Diff line number Diff line change
@@ -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*

Expand Down
Original file line number Diff line number Diff line change
@@ -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*

Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/dev-container-vscode-publish.yaml
Original file line number Diff line number Diff line change
@@ -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*

Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/example-carbon-accounting-publish.yaml
Original file line number Diff line number Diff line change
@@ -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*

Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/example-supply-chain-app-publish.yaml
Original file line number Diff line number Diff line change
@@ -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*

Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/fabric2-all-in-one-publish.yaml
Original file line number Diff line number Diff line change
@@ -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*

Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/geth-all-in-one-publish.yaml
Original file line number Diff line number Diff line change
@@ -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*

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:
# 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 }}
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/iroha2-all-in-one-publish.yaml
Original file line number Diff line number Diff line change
@@ -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*

Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/keychain-vault-server-publish.yaml
Original file line number Diff line number Diff line change
@@ -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*

Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/quorum-all-in-one-publish.yaml
Original file line number Diff line number Diff line change
@@ -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*

Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/quorum-multi-party-all-in-one-publish.yaml
Original file line number Diff line number Diff line change
@@ -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*

Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/sawtooth-all-in-one-publish.yaml
Original file line number Diff line number Diff line change
@@ -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*

Expand Down

0 comments on commit e73103d

Please sign in to comment.