Compare commits
2 commits
fbc7acc403
...
beaf3a90fa
Author | SHA1 | Date | |
---|---|---|---|
beaf3a90fa |
|||
64b708adca |
2 changed files with 61 additions and 2 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: ""
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -27,14 +27,14 @@ runs:
|
||||||
uses: https://git.kjan.de/actions/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db # v3
|
uses: https://git.kjan.de/actions/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db # v3
|
||||||
|
|
||||||
- name: Login to local Docker Registry
|
- name: Login to local Docker Registry
|
||||||
uses: https://git.kjan.de/actions/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3
|
uses: https://git.kjan.de/actions/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3
|
||||||
with:
|
with:
|
||||||
registry: git.kjan.de
|
registry: git.kjan.de
|
||||||
username: ${{ inputs.REGISTRY_USERNAME }}
|
username: ${{ inputs.REGISTRY_USERNAME }}
|
||||||
password: ${{ inputs.REGISTRY_TOKEN }}
|
password: ${{ inputs.REGISTRY_TOKEN }}
|
||||||
|
|
||||||
- name: Login to Docker.io Registry
|
- name: Login to Docker.io Registry
|
||||||
uses: https://git.kjan.de/actions/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3
|
uses: https://git.kjan.de/actions/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3
|
||||||
with:
|
with:
|
||||||
username: ${{ inputs.DOCKER_USERNAME }}
|
username: ${{ inputs.DOCKER_USERNAME }}
|
||||||
password: ${{ inputs.DOCKER_PASSWORD }}
|
password: ${{ inputs.DOCKER_PASSWORD }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue