Skip to content

Commit 823e567

Browse files
committed
fix(ci): add latest tag support for node and chrome images in build-docker workflow
- Added conditional logic to append `latest` tags (`curicows/php-laravel:node` and `curicows/php-laravel:chrome`) for both DockerHub and GitHub Container Registry. - Ensures images are tagged with `latest` when `matrix.latest` is `true`. - Updated tagging strategy to enhance clarity and consistency.
1 parent 26e50d9 commit 823e567

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/build-docker.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ jobs:
9292
tags: |
9393
curicows/php-laravel:php-${{matrix.php}}-node-${{matrix.node}}
9494
ghcr.io/curicows/php-laravel:php-${{matrix.php}}-node-${{matrix.node}}
95+
${{ matrix.latest == true && 'curicows/php-laravel:node' || '' }}
96+
${{ matrix.latest == true && 'ghcr.io/curicows/php-laravel:node' || '' }}
9597
9698
- name: Build Chrome
9799
uses: docker/build-push-action@v7
@@ -110,3 +112,5 @@ jobs:
110112
tags: |
111113
curicows/php-laravel:chrome-php-${{matrix.php}}-node-${{matrix.node}}
112114
ghcr.io/curicows/php-laravel:chrome-php-${{matrix.php}}-node-${{matrix.node}}
115+
${{ matrix.latest == true && 'curicows/php-laravel:chrome' || '' }}
116+
${{ matrix.latest == true && 'ghcr.io/curicows/php-laravel:chrome' || '' }}

0 commit comments

Comments
 (0)