Skip to content
This repository has been archived by the owner on Aug 10, 2023. It is now read-only.

Commit

Permalink
Make changes to deploy the action (#2)
Browse files Browse the repository at this point in the history
- Add docker labels
- Add CircleCI badge
  • Loading branch information
suryasr007 authored Sep 25, 2019
1 parent fef2240 commit d1a66b3
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.git
.gitignore
action.yml
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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

Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
15 changes: 8 additions & 7 deletions action.yml
Original file line number Diff line number Diff line change
@@ -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'

0 comments on commit d1a66b3

Please sign in to comment.