diff --git a/.travis.yml b/.travis.yml index 2439415b6..eb237477b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..8158e01a1 --- /dev/null +++ b/Dockerfile @@ -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"]