Compare commits
2 commits
265d98df67
...
dfb71f8d48
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dfb71f8d48 | ||
|
|
93071de95c |
2 changed files with 4 additions and 42 deletions
|
|
@ -1,38 +0,0 @@
|
||||||
#=======================================================================
|
|
||||||
# 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 = {
|
# config = {
|
||||||
User = "runner";
|
# User = "runner";
|
||||||
Cmd = [ "${lib.getExe bashInteractive}" ];
|
# Cmd = [ "${lib.getExe bashInteractive}" ];
|
||||||
};
|
# };
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue