initial commit
This commit is contained in:
commit
8509748cae
2 changed files with 103 additions and 0 deletions
37
readme.md
Normal file
37
readme.md
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
# kaniko-action
|
||||
|
||||
## Requirements
|
||||
|
||||
The repository that calls the action must have valid secrets to push to registry:
|
||||
|
||||
- `REGISTRY_USER`
|
||||
- `REGISTRY_TOKEN`
|
||||
|
||||
The repository that calls the action must have cross-repository access to this repository.
|
||||
|
||||
## Usage
|
||||
|
||||
```yaml
|
||||
name: kaniko build
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
|
||||
jobs:
|
||||
build-and-push:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: ghcr.io/osscontainertools/kaniko:alpine
|
||||
steps:
|
||||
- name: Checkout Source Code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Run Kaniko Build Push Action
|
||||
uses: https://code.verua.online/verua/kaniko-action
|
||||
with:
|
||||
registry_user: ${{ secrets.REGISTRY_USER }}
|
||||
registry_token: ${{ secrets.REGISTRY_TOKEN }}
|
||||
dockerfile_path: 'test-1/Dockerfile'
|
||||
target_stage: 'development'
|
||||
destination_image: '${{ forgejo.repository }}/foo-image:latest'
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue