Skip to content

Commit 2f7e191

Browse files
committed
fix: php\ddot\d
1 parent 37a37aa commit 2f7e191

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/docker-build.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,19 @@ jobs:
2929
with:
3030
images: lojassimonetti/php-apache-oci8-composer
3131

32+
- name: Should push?
33+
id: shoudPush
34+
run: |
35+
if [[ ${{ github.event.ref }} =~ ^refs/tags/php[0-9]dot[0-9]$ ]]; then
36+
echo "match=true" >> $GITHUB_OUTPUT
37+
elif [[ ${{ github.event.ref }} = "master" ]]; then
38+
echo "match=true" >> $GITHUB_OUTPUT
39+
fi
40+
3241
- name: Build and push Docker image
3342
uses: docker/build-push-action@v5
3443
with:
3544
context: .
36-
push: true
45+
push: ${{ steps.shoudPush.outputs.match == 'true' }}
3746
tags: ${{ steps.meta.outputs.tags }}
3847
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)