Skip to content

Filter for WordPress CLI run command #4

@plittlefield

Description

@plittlefield

Great tool, thank you so much.

I would like to filter out any notifications for the wordpress:cli image run commands.

e.g.

docker-compose run --rm www.domain.uk-wordpress-cli wp theme search donovan

Notifier, [15.04.21 12:37]
Started wwwdomainuk_www.domain.uk-wordpress-cli_run_7021e4f91fca (wordpress:cli) {ff8eb90aa307}

Notifier, [15.04.21 12:38]
Stopped wwwdomainuk_www.domain.uk-wordpress-cli_run_7021e4f91fca (wordpress:cli) {ff8eb90aa307}
Exit Code: 0

I have tried your regex for not showing notifications when I run the wordpress:cli image but I must be doing something wrong because they keep showing.

    environment:
      - TELEGRAM_NOTIFIER_BOT_TOKEN=xxxx:xxxxx
      - TELEGRAM_NOTIFIER_CHAT_ID=xxxxxxx
      - image_regexp='^(?!-cli:)'

Is this possible?

Thanks,

Paully

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions