Compare commits
No commits in common. "e3c4b9878e0a35594bbf6c33d5d73f2a14273a9e" and "dffa17475a42a7f02644dc2420bddb9165ffeb30" have entirely different histories.
e3c4b9878e
...
dffa17475a
2 changed files with 2 additions and 23 deletions
16
README.md
16
README.md
|
@ -4,7 +4,7 @@ Build OCI images using Kaniko, with the Dockerfile contents provided directly as
|
|||
|
||||
## Usage
|
||||
|
||||
### Example: Basic Usage, all options.
|
||||
Example:
|
||||
|
||||
```yaml
|
||||
jobs:
|
||||
|
@ -21,17 +21,3 @@ jobs:
|
|||
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||
password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||
```
|
||||
|
||||
### Example: Multiple Tags, Default registry
|
||||
|
||||
```yaml
|
||||
jobs:
|
||||
cowsay:
|
||||
runs-on: docker
|
||||
steps:
|
||||
- uses: https://git.kabelsalat.ch/s3lph/forgejo-kaniko-action@v1
|
||||
with:
|
||||
image: my-user/test-image:latest,my-user/test-image:${{ github.sha }}
|
||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||
password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||
```
|
||||
|
|
|
@ -38,11 +38,4 @@ runs:
|
|||
exit 1
|
||||
fi
|
||||
|
||||
dest_flags=""
|
||||
for dest in $(echo "${{ inputs.image }}" | tr ',' ' '); do
|
||||
dest_flags="$dest_flags --destination=$dest"
|
||||
done
|
||||
|
||||
echo "Destinations: $dest_flags"
|
||||
|
||||
/kaniko/executor --dockerfile Dockerfile --context $GITHUB_WORKSPACE $dest_flags
|
||||
/kaniko/executor --dockerfile Dockerfile --context $GITHUB_WORKSPACE --destination "${{ inputs.image }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue