Skip to content

Commit

Permalink
Properly tag Docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
matteocontrini authored and phatboyg committed Jul 2, 2023
1 parent 2e37176 commit 9017b89
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,26 @@ jobs:
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push image to DockerHub
uses: docker/build-push-action@v3
- 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:latest
tags: |
masstransit/rabbitmq:${{ env.RABBITMQ_MAJOR }}
masstransit/rabbitmq:${{ env.RABBITMQ_MAJOR }}.${{ env.RABBITMQ_MINOR }}
masstransit/rabbitmq:${{ env.RABBITMQ_VERSION }}
masstransit/rabbitmq:latest
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# RabbitMQ with delayed exchange

This repository contains the [RabbitMQ](https://hub.docker.com/_/rabbitmq) **management-alpine** image with [delayed message exchange](https://github.com/rabbitmq/rabbitmq-delayed-message-exchange/) plugin enabled.
This repository contains the [RabbitMQ](https://hub.docker.com/_/rabbitmq) `management` Docker image with [delayed message exchange](https://github.com/rabbitmq/rabbitmq-delayed-message-exchange/) plugin enabled.

This image is build to be used with [MassTransit - Scheduling](http://masstransit-project.com/advanced/scheduling/rabbitmq-delayed.html).

## Documentation

The [documentation](https://hub.docker.com/_/rabbitmq/) is the same as the default management-alpine image.
The [documentation](https://hub.docker.com/_/rabbitmq/) is the same as the default `management` image.

0 comments on commit 9017b89

Please sign in to comment.