Compare commits
2 commits
cb6229fde3
...
29f3fb77e6
Author | SHA1 | Date | |
---|---|---|---|
29f3fb77e6 |
|||
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: ""
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,7 @@ runs:
|
||||||
password: ${{ inputs.DOCKER_PASSWORD }}
|
password: ${{ inputs.DOCKER_PASSWORD }}
|
||||||
|
|
||||||
- name: Cache Docker layers
|
- name: Cache Docker layers
|
||||||
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
|
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4
|
||||||
with:
|
with:
|
||||||
path: /tmp/.buildx-cache
|
path: /tmp/.buildx-cache
|
||||||
key: ${{ runner.os }}-${{ inputs.name }}-${{ github.sha }}
|
key: ${{ runner.os }}-${{ inputs.name }}-${{ github.sha }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue