From 6134fca2ae9cc35e2a084321ac5f5f184f81dc8a Mon Sep 17 00:00:00 2001 From: Aaron Lane Date: Sun, 17 Dec 2023 21:26:37 +0000 Subject: [PATCH] Use rabbitmq-github-actions --- .github/workflows/deployment.yml | 14 +++++++------- rabbitmq-actions.conf | 7 +++++++ 2 files changed, 14 insertions(+), 7 deletions(-) create mode 100644 rabbitmq-actions.conf diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index acc74e40..43f1df90 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -41,13 +41,13 @@ jobs: steps: - name: Checkout the Git repository uses: actions/checkout@v3 - - name: Setup RabbitMQ - env: - RABBITMQ_CONFIG_FILE: "${{ github.workspace }}/rabbitmq.conf" - run: | - sudo apt-get --yes install rabbitmq-server - sudo systemctl stop rabbitmq-server - sudo rabbitmq-server -detached + - name: Set up RabbitMQ 3.12 + uses: namoshek/rabbitmq-github-action@v1 + with: + version: "3.12" + ports: "5671:5671 5672:5672" + certificates: ${{ github.workspace }}/dev/ssl/cert + config: ${{ github.workspace }}/rabbitmq-actions.conf - name: Set up Python 3.9 uses: actions/setup-python@v3 with: diff --git a/rabbitmq-actions.conf b/rabbitmq-actions.conf new file mode 100644 index 00000000..4da83491 --- /dev/null +++ b/rabbitmq-actions.conf @@ -0,0 +1,7 @@ +listeners.ssl.default = 5671 + +ssl_options.cacertfile = /rabbitmq-certs/ca_certificate.pem +ssl_options.certfile = /rabbitmq-certs/server_certificate.pem +ssl_options.keyfile = /rabbitmq-certs/server_key.pem +ssl_options.verify = verify_peer +ssl_options.fail_if_no_peer_cert = false