Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 37 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,37 @@
# publish-integration-image-action
# publish-integration-image-action

This is a composite action that will publish you image to your Docker Registry.

## Inputs

This action requires uses the following inputs:

| Name | Type | Description |
|--------------------|----------|------------------------------------------------------------------------------------|
| `package-name` | String | Name that the image should be published as to Docker Hub as |
| `docker-username` | String | Username for the docker account to publish under |
| `docker-password` | String | Password for the docker account to publish under |
| `push-to-registry` | String | Determine if the built image should be pushed to registry (Default is 'false') |

The docker username and password will likely be passed by `secrets`. You must ensure your repo has access to these secret variables

## Example Usage:

```yaml
jobs:
...

publish-image:
runs-on: ubuntu-latest
if: env.publish == 'true' # Only publish when releasing a new version to main
steps:
- uses: actions/checkout@v3
- id: publish-image
uses: jupiterone/publish-integration-image-action@v1
with:
package-name: 'jupiterone/graph-kubernetes'
docker-username: ${{ secrets.DOCKERHUB_USERNAME }}
docker-password: ${{ secrets.DOCKERHUB_TOKEN }}
push-to-registry: 'true'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be nice if we could use a boolean here instead of a string. Thoughts @ceelias?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yea that was my initial intent but its not supported unfortunately

```