Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Push 6.2.14 image #68

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/workflows/push-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ on:
branches: [master]

env:
REDIS_VERSION: latest
REDIS_SENTINEL_VERSION: latest
REDIS_VERSION: v6.2.14
REDIS_SENTINEL_VERSION: v6.2.14
REDIS_EXPORTER_VERSION: latest

jobs:
Expand All @@ -32,6 +32,8 @@ jobs:
file: Dockerfile
platforms: linux/amd64,linux/arm64
push: true
build-args: |
REDIS_VERSION=${{ env.REDIS_VERSION }}
tags: quay.io/opstree/redis:${{ env.REDIS_VERSION }}

build_redis_sentinel:
Expand All @@ -56,6 +58,8 @@ jobs:
file: Dockerfile.sentinel
platforms: linux/amd64,linux/arm64
push: true
build-args: |
REDIS_SENTINEL_VERSION=${{ env.REDIS_SENTINEL_VERSION }}
tags: quay.io/opstree/redis-sentinel:${{ env.REDIS_SENTINEL_VERSION }}

build_redis_exporter:
Expand Down
9 changes: 8 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,14 @@

WORKDIR /tmp

RUN curl -fL -Lo redis-${REDIS_VERSION}.tar.gz ${REDIS_DOWNLOAD_URL}/redis-${REDIS_VERSION}.tar.gz && \
RUN if [ "${REDIS_VERSION}" = "stable" ]; then \

Check failure on line 19 in Dockerfile

View workflow job for this annotation

GitHub Actions / build_dockerfile

SC2086 info: Double quote to prevent globbing and word splitting.
curl -fL -Lo redis-${REDIS_VERSION}.tar.gz ${REDIS_DOWNLOAD_URL}/redis-stable.tar.gz; \
else \
if [ "${REDIS_VERSION:0:1}" = "v" ]; then \
REDIS_VERSION=${REDIS_VERSION:1}; \
fi; \
curl -fL -Lo redis-${REDIS_VERSION}.tar.gz ${REDIS_DOWNLOAD_URL}/releases/redis-${REDIS_VERSION}.tar.gz; \
fi && \
tar xvzf redis-${REDIS_VERSION}.tar.gz

WORKDIR /tmp/redis-${REDIS_VERSION}
Expand Down
9 changes: 8 additions & 1 deletion Dockerfile.sentinel
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,14 @@

WORKDIR /tmp

RUN curl -fL -Lo redis-${REDIS_SENTINEL_VERSION}.tar.gz ${REDIS_DOWNLOAD_URL}/redis-${REDIS_SENTINEL_VERSION}.tar.gz && \
RUN if [ "${REDIS_SENTINEL_VERSION}" = "stable" ]; then \

Check failure on line 17 in Dockerfile.sentinel

View workflow job for this annotation

GitHub Actions / build_dockerfile_sentinel

SC3057 warning: In POSIX sh, string indexing is undefined.
curl -fL -Lo redis-${REDIS_SENTINEL_VERSION}.tar.gz ${REDIS_DOWNLOAD_URL}/redis-stable.tar.gz; \
else \
if [ "${REDIS_VERSION:0:1}" = "v" ]; then \
REDIS_VERSION=${REDIS_VERSION:1}; \
fi; \
curl -fL -Lo redis-${REDIS_SENTINEL_VERSION}.tar.gz ${REDIS_DOWNLOAD_URL}/releases/redis-${REDIS_SENTINEL_VERSION}.tar.gz; \
fi && \
tar xvzf redis-${REDIS_SENTINEL_VERSION}.tar.gz && \
make -C redis-${REDIS_SENTINEL_VERSION} && \
make -C redis-${REDIS_SENTINEL_VERSION} install BUILD_TLS=yes
Expand Down