From d1a66b3165d138aaf64f16c40e1c01aab9f14b1d Mon Sep 17 00:00:00 2001 From: Surya Teja <94suryateja@gmail.com> Date: Wed, 25 Sep 2019 18:54:33 +0530 Subject: [PATCH] Make changes to deploy the action (#2) - Add docker labels - Add CircleCI badge --- .dockerignore | 3 +++ Dockerfile | 9 +++++++++ README.md | 3 +++ action.yml | 15 ++++++++------- 4 files changed, 23 insertions(+), 7 deletions(-) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..beb4fc3 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,3 @@ +.git +.gitignore +action.yml diff --git a/Dockerfile b/Dockerfile index 916450d..5ab8b8d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,14 @@ FROM python:3.7-alpine +LABEL version="1.0.0" \ + repository="https://github.com/niteoweb/reviewapps-deploy-status" \ + homepage="https://github.com/niteoweb" \ + maintainer="niteo.co" \ + "com.github.actions.name"="Heroku Review App Deployment Status" \ + "com.github.actions.description"="A Github Action to test the deployment status of a Heroku Review App." \ + "com.github.actions.icon"="git-pull-request" \ + "com.github.actions.color"="orange" + RUN pip install --upgrade pip RUN pip install requests==2.22.0 diff --git a/README.md b/README.md index b9c712d..9aec374 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,9 @@ # Review Apps deployment status +[![CircleCI](https://circleci.com/gh/niteoweb/reviewapps-deploy-status/tree/master.svg?style=svg&circle-token=5ffcd6d51ad48e0b54dda7d8f37b158e5e502059)](https://circleci.com/gh/niteoweb/reviewapps-deploy-status/tree/master) + A Github Action that tests the deployment status of a Heroku Review App. + ## Usage: * Include the action in the workflow ```yaml diff --git a/action.yml b/action.yml index c79c18d..125c0dd 100644 --- a/action.yml +++ b/action.yml @@ -1,21 +1,22 @@ # Meta data for the action. -name: 'Review App Deployment Status' +name: 'Heroku Review App Deployment Status' author: 'niteo.co' description: 'A Github Action to test the deployment status of a Heroku Review App.' +branding: + icon: 'git-pull-request' + color: 'orange' + runs: using: 'docker' image: 'Dockerfile' + inputs: interval: - description: (optional) Interval to check the status. + description: Interval to check the status. required: false default: 10 # 10 seconds accepted_responses: - description: (optional) Status(es) which can be accepted. Separated by comma. + description: Status(es) which can be accepted. Separated by comma. required: false default: 200 # All OK status - -branding: - icon: 'activity' - color: 'green'