Compare commits
2 commits
3ca6450119
...
a02f0d8481
Author | SHA1 | Date | |
---|---|---|---|
a02f0d8481 |
|||
64b708adca |
2 changed files with 60 additions and 1 deletions
59
README.md
Normal file
59
README.md
Normal file
|
@ -0,0 +1,59 @@
|
|||
## Docker build
|
||||
|
||||
### Description
|
||||
|
||||
Builds a docker image
|
||||
|
||||
### Inputs
|
||||
|
||||
| name | description | required | default |
|
||||
| --- | --- | --- | --- |
|
||||
| `name` | <p>Directory name</p> | `true` | `""` |
|
||||
| `REGISTRY_USERNAME` | <p>Registry username</p> | `true` | `""` |
|
||||
| `REGISTRY_TOKEN` | <p>Registry token</p> | `true` | `""` |
|
||||
| `DOCKER_USERNAME` | <p>Docker username</p> | `true` | `""` |
|
||||
| `DOCKER_PASSWORD` | <p>Docker password</p> | `true` | `""` |
|
||||
|
||||
|
||||
### Runs
|
||||
|
||||
This action is a `composite` action.
|
||||
|
||||
### Usage
|
||||
|
||||
```yaml
|
||||
- uses: ***PROJECT***@***VERSION***
|
||||
with:
|
||||
name:
|
||||
# Directory name
|
||||
#
|
||||
# Required: true
|
||||
# Default: ""
|
||||
|
||||
REGISTRY_USERNAME:
|
||||
# Registry username
|
||||
#
|
||||
# Required: true
|
||||
# Default: ""
|
||||
|
||||
REGISTRY_TOKEN:
|
||||
# Registry token
|
||||
#
|
||||
# Required: true
|
||||
# Default: ""
|
||||
|
||||
DOCKER_USERNAME:
|
||||
# Docker username
|
||||
#
|
||||
# Required: true
|
||||
# Default: ""
|
||||
|
||||
DOCKER_PASSWORD:
|
||||
# Docker password
|
||||
#
|
||||
# Required: true
|
||||
# Default: ""
|
||||
```
|
||||
|
||||
|
||||
|
|
@ -48,7 +48,7 @@ runs:
|
|||
${{ runner.os }}-${{ inputs.name }}-
|
||||
|
||||
- name: Build and push
|
||||
uses: https://git.kjan.de/actions/build-push-action@5cd11c3a4ced054e52742c5fd54dca954e0edd85 # v6
|
||||
uses: https://git.kjan.de/actions/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6
|
||||
with:
|
||||
cache-from: type=local,src=/tmp/.buildx-cache
|
||||
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue