Skip to content

Commit

Permalink
Merge pull request #16 from tsuyoshicho/fix/redpen-depup
Browse files Browse the repository at this point in the history
fix: depup support for redpen
  • Loading branch information
tsuyoshicho committed Jan 27, 2020
2 parents 6e8641c + eb3a90f commit f5924af
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion .github/workflows/depup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ jobs:
labels: 'bump:patch'
depup-redpen:
runs-on: ubuntu-latest
if: false
steps:
- uses: actions/checkout@v2

Expand Down
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
FROM openjdk:12-alpine

ENV REDPEN_VERSION=redpen-1.10.3
ENV REDPEN_VERSION=1.10.3
ENV REVIEWDOG_VERSION=v0.9.17
RUN apk --update add git curl jq wget && \
rm -rf /var/lib/apt/lists/* && \
rm /var/cache/apk/*
RUN wget -O - -q https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh| sh -s -- -b /usr/local/bin/ ${REVIEWDOG_VERSION}
RUN curl -sL https://api.github.com/repos/redpen-cc/redpen/releases/tags/${REDPEN_VERSION} -o - \
RUN curl -sL https://api.github.com/repos/redpen-cc/redpen/releases/tags/redpen-${REDPEN_VERSION} -o - \
| jq -r .assets[].browser_download_url \
| grep -i "tar.gz" \
| head -n 1 \
| wget -qi - -O ${REDPEN_VERSION}.tar.gz && \
tar xvfp ${REDPEN_VERSION}.tar.gz -C / && \
| wget -qi - -O redpen-${REDPEN_VERSION}.tar.gz && \
tar xvfp redpen-${REDPEN_VERSION}.tar.gz -C / && \
rm *.tar.gz && \
find . -maxdepth 1 -type d -name "redpen*" -print0 | xargs -0 -I{} mv {} redpen

Expand Down

0 comments on commit f5924af

Please sign in to comment.