Skip to content

Commit

Permalink
Merge pull request #810 from taskworld/master
Browse files Browse the repository at this point in the history
Build a Docker image from source code
  • Loading branch information
orta committed Jan 23, 2019
2 parents b9148d5 + 672bd5d commit d725dcd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

- Fix issue where the PR command could not be run with a GitHub Enterprise URL.
- Specify filename when loading Babel options. Fixes [#664](https://github.com/danger/danger-js/issues/664) ([#804](https://github.com/danger/danger-js/pull/804)) - [@NMinhNguyen][]
- Running Danger on GitHub Actions now runs Danger from source code. Before that, Danger on GitHub Actions is stuck at v5.0.0-beta-24. [@dtinth](https://github.com/danger/danger-js/pull/810)

# 7.0.1

Expand Down
10 changes: 9 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,12 @@ LABEL "com.github.actions.description"="Runs JavaScript/TypeScript Dangerfiles"
LABEL "com.github.actions.icon"="zap"
LABEL "com.github.actions.color"="blue"

ENTRYPOINT ["npx", "--package", "danger@beta", "--package", "typescript", "--package", "@babel/cli", "danger", "ci"]
RUN mkdir -p /usr/src/danger
COPY . /usr/src/danger
RUN cd /usr/src/danger && \
yarn && \
yarn run build:fast && \
chmod +x distribution/commands/danger.js && \
ln -s $(pwd)/distribution/commands/danger.js /usr/bin/danger

ENTRYPOINT ["danger", "ci"]

0 comments on commit d725dcd

Please sign in to comment.