Skip to content

Commit

Permalink
feat(GHActions): publish GH Marketplace Docker image with DX Scanner
Browse files Browse the repository at this point in the history
  • Loading branch information
prokopsimek committed Jan 2, 2020
1 parent 0d01768 commit 71db6c0
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,12 @@ jobs:
skip_cleanup: true
script:
- npx semantic-release
- stage: publish gh action in docker container
if: branch = master AND type = push
node_js: lts/*
env:
- CONTAINER_NAME=docker.pkg.github.com/dxheroes/dx-scanner/release
script:
- docker build -t $CONTAINER_NAME .
- docker login -u dxheroes -p $DOCKER_GITHUB_PASSWORD docker.pkg.github.com
- docker push $CONTAINER_NAME
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM node:12-slim

LABEL maintainer="Prokop Simek, Adéla Homolová"
LABEL "com.github.actions.name"="DX Scanner Action"
LABEL "com.github.actions.description"="Measure Developer Experience directly based on your source code. DX Scanner recommends practices that can help you with improving your product development."
LABEL "com.github.actions.icon"="user-check"
LABEL "com.github.actions.color"="green"

RUN yarn global add dx-scanner

ENTRYPOINT ["dx-scanner", "ci", ".", "-r", "--fail=high"]

0 comments on commit 71db6c0

Please sign in to comment.