Skip to content

Commit

Permalink
Merge pull request #4 from product-os/klutchell-patch-1
Browse files Browse the repository at this point in the history
Update to v1.31.0
  • Loading branch information
flowzone-app[bot] committed Jul 31, 2023
2 parents bd1c366 + ef19b26 commit f8d725f
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,15 @@ FROM alpine:latest AS build

RUN apk add --no-cache github-cli

# https://github.com/palantir/policy-bot/actions/runs/5488519867
ARG GH_RUN_ID=5488519867
# https://github.com/palantir/policy-bot/actions/runs/5685648464
ARG GH_RUN_ID=5685648464

RUN --mount=type=secret,id=GITHUB_TOKEN \
GH_TOKEN=$(cat < /run/secrets/GITHUB_TOKEN) gh run download -R palantir/policy-bot ${GH_RUN_ID} \
&& find dist -type f -name '*.tgz' | xargs tar -zxvf \
&& ln -s $(find . -name 'policy-bot-*' -maxdepth 1) build \
&& readlink -n build | awk -F'/' '{print $2}' > build/.version


# https://hub.docker.com/r/palantirtechnologies/policy-bot
# https://github.com/palantir/policy-bot/blob/develop/docker/Dockerfile
FROM alpine
Expand All @@ -34,9 +33,5 @@ COPY src/config/policy-bot.example.yml /secrets/policy-bot.yml
COPY src/docker/ca-certificates.crt /etc/ssl/certs/
COPY src/docker/mime.types /etc/

# See: https://github.com/palantir/policy-bot/issues/598
# See: https://github.com/palantir/policy-bot/blob/ba3ba7ccc4a2c6372bde23c8dbf2a177572157ea/README.md#invalidate-on-push
ENV POLICYBOT_OPTIONS_DO_NOT_LOAD_COMMIT_PUSHED_DATE true

ENTRYPOINT ["bin/policy-bot"]
CMD ["server", "--config", "/secrets/policy-bot.yml"]

0 comments on commit f8d725f

Please sign in to comment.