Skip to content

Commit e64a936

Browse files
committed
[Added] index.js to send request to docker pull auto hook
[Added] build with vercel/ncc [Added] README for documentation
0 parents  commit e64a936

421 files changed

Lines changed: 100083 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Docker Pull Auto Action
2+
Docker pull auto action sends a request to the repository implementation of [docker-pull-auto](https://github.com/codebysandip).
3+
This action sends docker image and tag to API `/api/webhook`.
4+
5+
## Inputs
6+
7+
### `docker-image`
8+
**required** 'docker image. Example sandipj/react-ssr-doc
9+
10+
### `docker-tag`
11+
**required** docker tag which you just generated. Example latest
12+
13+
### `domain`
14+
**required** domain on which request will send. Example myawesomeapp.com
15+
16+
### `hook-secret`
17+
**required** hook secret used to verify request coming from docker pull auto action. [Learn more](https://codebysandip.github.io/docker-pull-auto/how-to-create-hook-secret.html)
18+
19+
### `over-http`
20+
request will send over http if true. Default false
21+
22+
### `port`
23+
port on which request will send. Default 443
24+
25+
26+
## Example Usage
27+
```yaml
28+
- name: Docker Pull Auto
29+
uses: actions/docker-pull-auto@v1.0
30+
with:
31+
docker-image: sandipj/react-ssr-doc
32+
docker-tag: prod-1.0
33+
domain: myawesomeapp.com
34+
hook-secret: my-secret
35+
```

action.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: 'Hello World'
2+
description: 'Greet someone and record the time'
3+
inputs:
4+
docker-image:
5+
description: 'docker image. Example sandipj/react-ssr-doc'
6+
required: true
7+
docker-tag:
8+
description: 'docker tag which you just generated. Example latest'
9+
required: true
10+
domain:
11+
description: 'domain on which request will send'
12+
required: true
13+
hook-secret:
14+
description: 'hook secret used to verify request coming from docker pull auto action'
15+
required: true
16+
over-http:
17+
description: 'request will send over http if true'
18+
default: false
19+
port:
20+
description: 'port on which request will send. Default 443'
21+
default: 443
22+
runs:
23+
using: 'node16'
24+
main: 'dist/index.js'

0 commit comments

Comments
 (0)