From bc5c4116733643b539689f35209da831161df04d Mon Sep 17 00:00:00 2001 From: Jennifer Richards Date: Thu, 14 Sep 2023 17:17:04 -0300 Subject: [PATCH] ci: specify/parameterize rabbitmq version (#6308) * ci: Specify / parameterize rabbitmq version * ci: Fix syntax in build-mq-broker.yml --- .github/workflows/build-mq-broker.yml | 9 +++++++-- dev/mq/Dockerfile | 4 +++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-mq-broker.yml b/.github/workflows/build-mq-broker.yml index 9aaa041cb9..6b00eef25d 100644 --- a/.github/workflows/build-mq-broker.yml +++ b/.github/workflows/build-mq-broker.yml @@ -10,6 +10,9 @@ on: workflow_dispatch: +env: + RABBITMQ_VERSION: 3.11-alpine + jobs: publish: runs-on: ubuntu-latest @@ -40,5 +43,7 @@ jobs: file: dev/mq/Dockerfile platforms: linux/amd64,linux/arm64 push: true - tags: ghcr.io/ietf-tools/datatracker-mq:latest - + build-args: RABBITMQ_VERSION=${{ env.RABBITMQ_VERSION }} + tags: | + ghcr.io/ietf-tools/datatracker-mq:${{ env.RABBITMQ_VERSION }} + ghcr.io/ietf-tools/datatracker-mq:latest diff --git a/dev/mq/Dockerfile b/dev/mq/Dockerfile index e8871c30a9..1738c4b3d2 100644 --- a/dev/mq/Dockerfile +++ b/dev/mq/Dockerfile @@ -1,6 +1,8 @@ # Dockerfile for RabbitMQ worker # -FROM rabbitmq:3-alpine +ARG RABBITMQ_VERSION=3.11-alpine + +FROM rabbitmq:${RABBITMQ_VERSION} LABEL maintainer="IETF Tools Team " # Copy the startup file