feat: input context
This commit is contained in:
parent
8ba1608afe
commit
4bedfc30b7
3 changed files with 47 additions and 9 deletions
23
README.md
23
README.md
|
|
@ -6,7 +6,7 @@ Build OCI images using Kaniko.
|
|||
|
||||
### Example: Basic Usage, all options.
|
||||
|
||||
```yaml
|
||||
````yaml
|
||||
jobs:
|
||||
cowsay:
|
||||
runs-on: docker
|
||||
|
|
@ -20,7 +20,24 @@ jobs:
|
|||
registry: docker.example.org
|
||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||
password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||
```
|
||||
|
||||
### Example: Custom build context
|
||||
|
||||
```yaml
|
||||
jobs:
|
||||
build:
|
||||
runs-on: docker
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: https://github.com/leandro-costa-oliveira/forgejo-kaniko-action@v3
|
||||
with:
|
||||
context: ./subdir
|
||||
image: my-user/test-image:latest
|
||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||
password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||
````
|
||||
|
||||
````
|
||||
|
||||
### Example: Multiple Tags, Default registry
|
||||
|
||||
|
|
@ -34,7 +51,7 @@ jobs:
|
|||
image: my-user/test-image:latest,my-user/test-image:${{ github.sha }}
|
||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||
password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||
```
|
||||
````
|
||||
|
||||
### Credits
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue