Compare commits
No commits in common. "dfb71f8d4851b47533a54ae96fe924223d98cf32" and "265d98df673348c536b1550edd54173731090272" have entirely different histories.
dfb71f8d48
...
265d98df67
2 changed files with 42 additions and 4 deletions
38
.forgejo/actions/push_container/action.yml
Normal file
38
.forgejo/actions/push_container/action.yml
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
#=======================================================================
|
||||
# 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 }}'
|
||||
|
|
@ -21,8 +21,8 @@ dockerTools.buildImage {
|
|||
];
|
||||
};
|
||||
|
||||
# config = {
|
||||
# User = "runner";
|
||||
# Cmd = [ "${lib.getExe bashInteractive}" ];
|
||||
# };
|
||||
config = {
|
||||
User = "runner";
|
||||
Cmd = [ "${lib.getExe bashInteractive}" ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue