Skip to content

Updating to latest RabbitMQ #20

Updating to latest RabbitMQ

Updating to latest RabbitMQ #20

Workflow file for this run

name: Build Docker Image
on:
push:
branches:
- 'master'
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Read RabbitMQ version
run: |
RABBITMQ_VERSION=$(grep "rabbitmq:" Dockerfile | cut -d ":" -f 2 | cut -d "-" -f 1)
RABBITMQ_MAJOR=$(echo $RABBITMQ_VERSION | cut -d "." -f 1)
RABBITMQ_MINOR=$(echo $RABBITMQ_VERSION | cut -d "." -f 2)
echo "RABBITMQ_VERSION=$RABBITMQ_VERSION" >> $GITHUB_ENV
echo "RABBITMQ_MAJOR=$RABBITMQ_MAJOR" >> $GITHUB_ENV
echo "RABBITMQ_MINOR=$RABBITMQ_MINOR" >> $GITHUB_ENV
- name: Build and push image to Docker Hub
uses: docker/build-push-action@v4
with:
platforms: linux/amd64,linux/arm64
push: true
tags: |
masstransit/rabbitmq:${{ env.RABBITMQ_MAJOR }}
masstransit/rabbitmq:${{ env.RABBITMQ_MAJOR }}.${{ env.RABBITMQ_MINOR }}
masstransit/rabbitmq:${{ env.RABBITMQ_VERSION }}
masstransit/rabbitmq:latest