fix registry authentication
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# Podman Build And Publish Action
|
||||
|
||||
Composite action that builds and optionally pushes OCI images with Podman to `registry.noctrl.eu`.
|
||||
Composite action that builds and pushes OCI images with Podman to `registry.noctrl.eu`.
|
||||
|
||||
## Inputs
|
||||
|
||||
@@ -9,11 +9,12 @@ Composite action that builds and optionally pushes OCI images with Podman to `re
|
||||
- `context` (optional, default `.`): build context
|
||||
- `containerfile` (optional, default `Containerfile`): containerfile path
|
||||
- `build-args` (optional): newline-separated `KEY=VALUE`
|
||||
- `push` (optional, default `true`): whether to push image tags
|
||||
- `registry-username` (required): registry login username
|
||||
- `registry-password` (required): registry login password
|
||||
|
||||
## Required Secrets
|
||||
## Caller Secrets
|
||||
|
||||
The following repository secrets must be defined to push images:
|
||||
Define these secrets in the calling repository and pass them to the action inputs:
|
||||
- `REGISTRY_USERNAME`: registry authentication username
|
||||
- `REGISTRY_PASSWORD`: registry authentication password
|
||||
|
||||
@@ -45,7 +46,8 @@ jobs:
|
||||
containerfile: Containerfile
|
||||
build-args: |
|
||||
ACT_RUNNER_VERSION=0.2.11
|
||||
push: "true"
|
||||
registry-username: ${{ secrets.REGISTRY_USERNAME }}
|
||||
registry-password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||
```
|
||||
|
||||
> **Note:** The action accesses `${{ secrets.REGISTRY_USERNAME }}` and `${{ secrets.REGISTRY_PASSWORD }}` from the calling repository's secrets context. These must be defined in the caller's repository settings.
|
||||
> **Note:** Composite actions should receive credentials through inputs. Keep secrets in the caller repo and pass them via `with:` as shown above.
|
||||
|
||||
Reference in New Issue
Block a user