buildah
This commit is contained in:
parent
ccce4a1114
commit
c86803b89e
2 changed files with 6 additions and 5 deletions
|
|
@ -63,7 +63,7 @@ runs:
|
||||||
- name: Run container steps
|
- name: Run container steps
|
||||||
uses: frozen-tapestry/docker-run-action@develop
|
uses: frozen-tapestry/docker-run-action@develop
|
||||||
with:
|
with:
|
||||||
image: quay.io/podman/stable:latest
|
image: quay.io/buildah/stable:latest
|
||||||
mount_ws: true
|
mount_ws: true
|
||||||
options: |
|
options: |
|
||||||
${{ inputs.security }}
|
${{ inputs.security }}
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ IFS=$'\n\t '
|
||||||
|
|
||||||
### LOGIN
|
### LOGIN
|
||||||
if [[ -n "$REGISTRY" && -n "$USERNAME" && -n "$PASSWORD" ]]; then
|
if [[ -n "$REGISTRY" && -n "$USERNAME" && -n "$PASSWORD" ]]; then
|
||||||
podman login --storage-driver=overlay $REGISTRY -u $USERNAME -p $PASSWORD
|
buildah login --storage-driver=overlay2 $REGISTRY -u $USERNAME -p $PASSWORD
|
||||||
fi
|
fi
|
||||||
|
|
||||||
generate_args() {
|
generate_args() {
|
||||||
|
|
@ -36,8 +36,9 @@ if [[ -n "$DOCKERFILE" ]]; then
|
||||||
EXTRA_ARGS=$(generate_args "$ACTION_EXTRA_ARGS" "")
|
EXTRA_ARGS=$(generate_args "$ACTION_EXTRA_ARGS" "")
|
||||||
echo "Extra args: $EXTRA_ARGS"
|
echo "Extra args: $EXTRA_ARGS"
|
||||||
|
|
||||||
podman build --platform="linux/amd64" \
|
buildah bud --platform="linux/amd64" \
|
||||||
--storage-driver=overlay \
|
--storage-driver=overlay2 \
|
||||||
|
--layers \
|
||||||
--pull=true \
|
--pull=true \
|
||||||
--label image.created="$CREATED" \
|
--label image.created="$CREATED" \
|
||||||
--label image.revision="$REVISION" \
|
--label image.revision="$REVISION" \
|
||||||
|
|
@ -54,5 +55,5 @@ if [[ -n "$PUSH" && "$PUSH" == "true" ]]; then
|
||||||
TAGS=$(generate_args "$ACTION_TAGS" "")
|
TAGS=$(generate_args "$ACTION_TAGS" "")
|
||||||
echo "Tags: $TAGS"
|
echo "Tags: $TAGS"
|
||||||
|
|
||||||
podman push --storage-driver=overlay $TAGS
|
buildah push --storage-driver=overlay2 $TAGS
|
||||||
fi
|
fi
|
||||||
Loading…
Add table
Add a link
Reference in a new issue