Skip to content

Commit ca9269e

Browse files
committed
readme on action usage
1 parent 5524048 commit ca9269e

File tree

1 file changed

+36
-1
lines changed

1 file changed

+36
-1
lines changed

README.md

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,36 @@
1-
# publish-integration-image-action
1+
# publish-integration-image-action
2+
3+
This is a composite action that will publish you image to your Docker Registry.
4+
5+
## Inputs
6+
7+
This action requires uses the following inputs:
8+
9+
| Name | Type | Description |
10+
|--------------------|----------|------------------------------------------------------------------------------------|
11+
| `package-name` | String | Name that the image should be published as to Docker Hub as |
12+
| `docker-username` | String | Username for the docker account to publish under |
13+
| `docker-password` | String | Password for the docker account to publish under |
14+
| `push-to-registry` | String | Determine if the built image should be pushed to registry (Default is 'false') |
15+
16+
The docker username and password will likely be passed by `secrets`. You must ensure your repo has access to these secret variables
17+
18+
## Example Usage:
19+
20+
```yaml
21+
jobs:
22+
...
23+
24+
publish-image:
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@v3
28+
- id: publish-image
29+
uses: jupiterone/[email protected]
30+
with:
31+
package-name: 'jupiterone/graph-kubernetes'
32+
docker-username: ${{ secrets.DOCKERHUB_USERNAME }}
33+
docker-password: ${{ secrets.DOCKERHUB_TOKEN }}
34+
push-to-registry: 'true'
35+
```
36+

0 commit comments

Comments
 (0)