Skip to content

Commit

Permalink
CI fail
Browse files Browse the repository at this point in the history
Signed-off-by: Azanul <[email protected]>
  • Loading branch information
Azanul committed Oct 6, 2023
1 parent 4354b10 commit 61839ee
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
name: Lint Dockerfile
with:
dockerfile: Dockerfile
ignore: DL3007,DL3018

- name: Build Dockerfile
run: docker build . --file Dockerfile --tag redis:$(date +%s)
Expand All @@ -27,6 +28,7 @@ jobs:
name: Lint Dockerfile.exporter
with:
dockerfile: Dockerfile.exporter
ignore: DL3007,DL3018

- name: Build Dockerfile.exporter
run: docker build . --file Dockerfile.exporter --tag redis-exporter:$(date +%s)
Expand All @@ -40,6 +42,7 @@ jobs:
name: Lint Dockerfile.sentinel
with:
dockerfile: Dockerfile.sentinel
ignore: DL3007,DL3018

- name: Build Dockerfile.sentinel
run: docker build . --file Dockerfile.sentinel --tag redis-sentinel:$(date +%s)
9 changes: 6 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,12 @@ RUN apk add --no-cache su-exec tzdata make curl build-base linux-headers bash op
WORKDIR /tmp

RUN curl -fL -Lo redis-${REDIS_VERSION}.tar.gz ${REDIS_DOWNLOAD_URL}/redis-${REDIS_VERSION}.tar.gz && \
tar xvzf redis-${REDIS_VERSION}.tar.gz && \
make -C redis-${REDIS_VERSION} && \
make -C redis-${REDIS_VERSION} install BUILD_TLS=yes
tar xvzf redis-${REDIS_VERSION}.tar.gz

WORKDIR /tmp/redis-${REDIS_VERSION}

RUN make && \
make install BUILD_TLS=yes

FROM alpine:3.15

Expand Down
2 changes: 2 additions & 0 deletions Dockerfile.exporter
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ ARG EXPORTER_URL="https://github.com/oliver006/redis_exporter/releases/download"

ARG REDIS_EXPORTER_VERSION="1.48.0"

WORKDIR /tmp

RUN apk add --no-cache curl ca-certificates && \
curl -fL -Lo redis_exporter-v${REDIS_EXPORTER_VERSION}.linux-$TARGETARCH.tar.gz \
${EXPORTER_URL}/v${REDIS_EXPORTER_VERSION}/redis_exporter-v${REDIS_EXPORTER_VERSION}.linux-$TARGETARCH.tar.gz && \
Expand Down
3 changes: 0 additions & 3 deletions hadolint.yaml

This file was deleted.

0 comments on commit 61839ee

Please sign in to comment.