diff --git a/.github/workflows/bbm_deploy.yml b/.github/workflows/bbm_deploy.yml index ad525435..0ea06cb8 100644 --- a/.github/workflows/bbm_deploy.yml +++ b/.github/workflows/bbm_deploy.yml @@ -92,8 +92,8 @@ jobs: production-deploy: runs-on: ubuntu-22.04 needs: check - if: > - github.event_name == 'workflow_dispatch' && + if: > + github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main' && github.repository == 'MariaDB/buildbot' steps: diff --git a/docker-compose/generate-config.py b/docker-compose/generate-config.py index 0d56d853..865aba38 100755 --- a/docker-compose/generate-config.py +++ b/docker-compose/generate-config.py @@ -192,10 +192,10 @@ def main(args): ) file.write( start_template.format( - port=master_web_port, - cr_host_wg_addr=env_vars["CR_HOST_WG_ADDR"], - environment="" if args.env == "prod" else "dev_", - ) + port=master_web_port, + cr_host_wg_addr=env_vars["CR_HOST_WG_ADDR"], + environment="" if args.env == "prod" else "dev_", + ) ) port = starting_port for master_directory in MASTER_DIRECTORIES: