Skip to content

Commit f12b780

Browse files
committed
feat(ci): enhance CI pipeline with README artifact management
- Removes unnecessary checkout step from the pipeline. - Adds steps to upload and download the README artifact. - Configures synchronization of the README on Docker Hub after download. - Updates CI pipeline to set 'fail-fast' to false for matrix jobs. - Prevents early termination of jobs in case of failure, allowing all matrix jobs to run for better resource utilization and debugging.
1 parent 5638179 commit f12b780

File tree

1 file changed

+26
-3
lines changed

1 file changed

+26
-3
lines changed

.github/workflows/pipeline.yaml

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ jobs:
116116
if: ${{ needs.discovery.outputs.build == 'true' }}
117117
needs: [discovery]
118118
strategy:
119+
fail-fast: false
119120
matrix:
120121
include:
121122
- runner: ubuntu-latest
@@ -130,9 +131,6 @@ jobs:
130131
gitVersion_SemVer: ${{ needs.discovery.outputs.gitVersion_SemVer }}
131132
gitVersion_AssemblySemFileVer: ${{ needs.discovery.outputs.gitVersion_AssemblySemFileVer }}
132133
steps:
133-
- name: checkout
134-
uses: actions/checkout@v4
135-
136134
- name: tools - docker - login ghcr.io
137135
if: ${{ env.build_push == 'true' }}
138136
uses: docker/login-action@v3
@@ -172,6 +170,14 @@ jobs:
172170
${{ env.container_image_repository_dockerhub }}/${{ env.container_image }}:${{ env.gitVersion_SemVer }}-${{ matrix.platform == 'linux/amd64' && 'amd64' || 'arm64' }}
173171
${{ env.container_image_repository_ghcr }}/${{ env.container_image }}:${{ env.gitVersion_SemVer }}-${{ matrix.platform == 'linux/amd64' && 'amd64' || 'arm64' }}
174172
173+
- name: artifacts - upload readme
174+
if: ${{ matrix.platform == 'linux/amd64' }}
175+
uses: actions/upload-artifact@v4
176+
with:
177+
name: readme
178+
path: README.md
179+
retention-days: 1
180+
175181
manifest:
176182
name: build - manifest
177183
if: ${{ needs.discovery.outputs.build_push == 'true' }}
@@ -214,6 +220,8 @@ jobs:
214220
gitVersion_SemVer: ${{ needs.discovery.outputs.gitVersion_SemVer }}
215221
gitVersion_AssemblySemFileVer: ${{ needs.discovery.outputs.gitVersion_AssemblySemFileVer }}
216222
steps:
223+
- name: checkout
224+
uses: actions/checkout@v4
217225
- name: tools - docker - login ghcr.io
218226
uses: docker/login-action@v3
219227
with:
@@ -248,6 +256,21 @@ jobs:
248256
generate_release_notes: true
249257
token: ${{ secrets.ES_GITHUB_PAT }}
250258

259+
- name: artifacts - download readme
260+
uses: actions/download-artifact@v4
261+
with:
262+
name: readme
263+
path: .
264+
265+
- name: dockerhub - readme - sync
266+
uses: peter-evans/dockerhub-description@v4
267+
with:
268+
username: ${{ secrets.ES_DOCKERHUB_USERNAME }}
269+
password: ${{ secrets.ES_DOCKERHUB_PAT }}
270+
repository: ${{ env.container_image_repository_dockerhub }}/${{ env.container_image }}
271+
readme-filepath: ./README.md
272+
short-description: "Enhanced GitHub Actions self-hosted runner with comprehensive development tools"
273+
251274

252275

253276

0 commit comments

Comments
 (0)