Skip to content

Commit

Permalink
Apply if correctly for pre-releases
Browse files Browse the repository at this point in the history
If we had a 4.0.x pre-release now (like a 4.0.5-rc), we would apply this `if` statement incorrectly. 😅
  • Loading branch information
tianon committed Nov 22, 2024
1 parent 746395c commit af2bad5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile-alpine.template
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ RUN set -eux; \
xz \
; \
\
{{ if env.version | IN("3.13", "4.0") then ( -}}
{{ if env.version | rtrimstr("-rc") | IN("3.13", "4.0") then ( -}}
RABBITMQ_SOURCE_URL="https://github.com/rabbitmq/rabbitmq-server/releases/download/v$RABBITMQ_VERSION/rabbitmq-server-generic-unix-latest-toolchain-$RABBITMQ_VERSION.tar.xz"; \
{{ ) else ( -}}
RABBITMQ_SOURCE_URL="https://github.com/rabbitmq/rabbitmq-server/releases/download/v$RABBITMQ_VERSION/rabbitmq-server-generic-unix-$RABBITMQ_VERSION.tar.xz"; \
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile-ubuntu.template
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ RUN set -eux; \
; \
rm -rf /var/lib/apt/lists/*; \
\
{{ if env.version | IN("3.13", "4.0") then ( -}}
{{ if env.version | rtrimstr("-rc") | IN("3.13", "4.0") then ( -}}
RABBITMQ_SOURCE_URL="https://github.com/rabbitmq/rabbitmq-server/releases/download/v$RABBITMQ_VERSION/rabbitmq-server-generic-unix-latest-toolchain-$RABBITMQ_VERSION.tar.xz"; \
{{ ) else ( -}}
RABBITMQ_SOURCE_URL="https://github.com/rabbitmq/rabbitmq-server/releases/download/v$RABBITMQ_VERSION/rabbitmq-server-generic-unix-$RABBITMQ_VERSION.tar.xz"; \
Expand Down

0 comments on commit af2bad5

Please sign in to comment.