Some checks failed
Create OCI image(s) / Build and push images (push) Failing after 1m51s
38 lines
No EOL
1.2 KiB
YAML
38 lines
No EOL
1.2 KiB
YAML
#=======================================================================
|
|
# Metadata
|
|
#=======================================================================
|
|
name: Push OCI container
|
|
description: Push the `source` image to the `destination` registry
|
|
|
|
#=======================================================================
|
|
# Parameters
|
|
#=======================================================================
|
|
inputs:
|
|
registry:
|
|
required: true
|
|
description: The registry to authen
|
|
|
|
source:
|
|
required: true
|
|
description: The source image to be pushed
|
|
|
|
destination:
|
|
required: true
|
|
description: where to push the image to
|
|
|
|
#=======================================================================
|
|
# Logic
|
|
#=======================================================================
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- name: Authenticate
|
|
run: |
|
|
echo "Authenticate"
|
|
echo "pushing image '${{ inputs.source }}' to '${{ inputs.destination }}'"
|
|
|
|
echo "${{ forge.token }}" | podman login --username '${{ forge.actor }}' --password-stdin
|
|
|
|
- name: Push
|
|
run: |
|
|
podman push '${{ inputs.source }}' '${{ inputs.destination }}' |