diff --git a/.github/workflows/docker-build.yaml b/.github/workflows/docker-build.yaml index 28f64d5..229ab42 100644 --- a/.github/workflows/docker-build.yaml +++ b/.github/workflows/docker-build.yaml @@ -32,11 +32,11 @@ jobs: - name: Should push? id: shoudPush run: | - if [[ ${{ github.event.ref }} =~ ^refs/heads/php[0-9]dot[0-9]$ ]]; then + if [[ ${{ github.event.ref }} = "refs/heads/master" ]]; then echo "match=true" >> $GITHUB_OUTPUT - if [[ ${{ github.event.ref }} =~ ^refs/heads/php[0-9]dot[0-9]-mongodb$ ]]; then + elif [[ ${{ github.event.ref }} =~ ^refs/heads/php[0-9]dot[0-9]$ ]]; then echo "match=true" >> $GITHUB_OUTPUT - elif [[ ${{ github.event.ref }} = "refs/heads/master" ]]; then + elif [[ ${{ github.event.ref }} =~ ^refs/heads/php[0-9]dot[0-9]-mongodb$ ]]; then echo "match=true" >> $GITHUB_OUTPUT fi