diff --git a/README.md b/README.md index f6f0c993..806c2b1d 100644 --- a/README.md +++ b/README.md @@ -224,7 +224,9 @@ reviewers: - `/retest tox`: run tox - `/retest build-container`: run build-container - `/retest python-module-install`: run python-module-install command -- `/build-and-push-container`: build and push container image (tag will be the PR number). +- `/build-and-push-container`: build and push container image (tag will be the PR number) + - You can add extra args to the Podman build command + - Example: `/build-and-push-container --build-arg OPENSHIFT_PYTHON_WRAPPER_COMMIT=` - `/assign-reviewers`: assign reviewers based on OWNERS file ### Supported user labels diff --git a/example.config.yaml b/example.config.yaml index 1ec00c0b..72f8c501 100644 --- a/example.config.yaml +++ b/example.config.yaml @@ -57,8 +57,8 @@ repositories: tag: release: true # Push image to registry on new release with release as the tag build-args: # build args to send to podman build command - - build-arg1=1 - - build-arg2=2 + - my-build-arg1=1 + - my-build-arg2=2 args: # args to send to podman build command - --format docker diff --git a/webhook_server_container/libs/github_api.py b/webhook_server_container/libs/github_api.py index ff20917b..2618ea1b 100644 --- a/webhook_server_container/libs/github_api.py +++ b/webhook_server_container/libs/github_api.py @@ -160,6 +160,8 @@ def __init__(self, hook_data: Dict[Any, Any], headers: Headers): * Multiple target branches can be cherry-picked, separated by spaces. (`/cherry-pick branch1 branch2`) * Cherry-pick will be started when PR is merged * To build and push container image command `/build-and-push-container` in the PR (tag will be the PR number). + * You can add extra args to the Podman build command + * Example: `/build-and-push-container --build-arg OPENSHIFT_PYTHON_WRAPPER_COMMIT=` * To add a label by comment use `/