Skip to content

Commit

Permalink
Merge pull request #56 from emqx/0112-5.4.1
Browse files Browse the repository at this point in the history
chore: 5.4.1
  • Loading branch information
id authored Jan 12, 2024
2 parents 753e8c4 + 4d35ad3 commit 355cb52
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
8 changes: 4 additions & 4 deletions 5.4/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM debian:11-slim
FROM debian:11-slim@sha256:41c3fecb70015fd9c72d6df95573de3f92d5f4f46fdabe8dbd8d2bfb1531594d

ENV EMQX_VERSION=5.4.0
ENV AMD64_SHA256=5572dccf3704dbd910f145fe19882fa30fdd9132113d0a28110444d4d5685a3f
ENV ARM64_SHA256=0dbe92966a93054a8dca89762c00b06a44659c7921177feb291a5ddd5340cefc
ENV EMQX_VERSION=5.4.1
ENV AMD64_SHA256=c2087651d72f17999f52d73ff22cd8f23dc5fa5db8b5a90a8bc4a1410b03affb
ENV ARM64_SHA256=6c53a68ae907f7b4a3cdcd4dbee4f839b07853695ac1c039b51fd97d993073bc
ENV LC_ALL=C.UTF-8 LANG=C.UTF-8

RUN set -eu; \
Expand Down
9 changes: 6 additions & 3 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ VERSION_DIR=$(echo "$VERSION" | cut -d '.' -f 1,2 -)
AMD64_SHA256=$(curl -sSL https://github.com/emqx/emqx/releases/download/v${VERSION}/emqx-${VERSION}-debian11-amd64.tar.gz.sha256)
ARM64_SHA256=$(curl -sSL https://github.com/emqx/emqx/releases/download/v${VERSION}/emqx-${VERSION}-debian11-arm64.tar.gz.sha256)

sed -i'' -e "s/EMQX_VERSION=.*/EMQX_VERSION=${VERSION}/" $VERSION_DIR/Dockerfile
sed -i'' -e "s/AMD64_SHA256=.*/AMD64_SHA256=${AMD64_SHA256}/" $VERSION_DIR/Dockerfile
sed -i'' -e "s/ARM64_SHA256=.*/ARM64_SHA256=${ARM64_SHA256}/" $VERSION_DIR/Dockerfile
sed -i.bak \
-e "s/EMQX_VERSION=.*/EMQX_VERSION=${VERSION}/" \
-e "s/AMD64_SHA256=.*/AMD64_SHA256=${AMD64_SHA256}/" \
-e "s/ARM64_SHA256=.*/ARM64_SHA256=${ARM64_SHA256}/" \
$VERSION_DIR/Dockerfile
rm -f $VERSION_DIR/Dockerfile.bak

0 comments on commit 355cb52

Please sign in to comment.