We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37a37aa commit 2f7e191Copy full SHA for 2f7e191
.github/workflows/docker-build.yaml
@@ -29,10 +29,19 @@ jobs:
29
with:
30
images: lojassimonetti/php-apache-oci8-composer
31
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
39
+ fi
40
+
41
- name: Build and push Docker image
42
uses: docker/build-push-action@v5
43
44
context: .
- push: true
45
+ push: ${{ steps.shoudPush.outputs.match == 'true' }}
46
tags: ${{ steps.meta.outputs.tags }}
47
labels: ${{ steps.meta.outputs.labels }}
0 commit comments