Vitaliy Potyarkin
f37c89b1fd
Some checks are pending
/ build-dotnet-8.0 (pull_request) Successful in 5m45s
/ build-oci-image-builder-bookworm (pull_request) Successful in 3m20s
/ build-openjdk-11-maven-3.8.6 (pull_request) Successful in 5m40s
/ build-python-3.11 (pull_request) Successful in 1m24s
/ build-python-3.13 (pull_request) Successful in 5m58s
/ build-dotnet-8.0 (push) Successful in 5m30s
/ build-oci-image-builder-bookworm (push) Successful in 4m6s
/ build-openjdk-11-maven-3.8.6 (push) Successful in 1m25s
/ build-python-3.11 (push) Successful in 5m39s
/ build-python-3.13 (push) Has started running
This saves some workflow time previously spent on installing Debian packages and also allows for easier reuse of Buildah in other repos' actions. Signed-off-by: Vitaliy Potyarkin <v.potyarkin@yadro.com>
18 lines
345 B
Bash
Executable file
18 lines
345 B
Bash
Executable file
#!/bin/bash
|
|
#
|
|
# A wrapper that translates `docker build` commands for use with buildah
|
|
#
|
|
set -euo pipefail
|
|
while [[ $# -ne 0 ]]
|
|
do
|
|
case "$1" in
|
|
--rm|--force-rm)
|
|
# 'rm' and 'force-rm' can only be set with either 'layers' or 'no-cache'
|
|
;;
|
|
*)
|
|
args+=("$1")
|
|
;;
|
|
esac
|
|
shift
|
|
done
|
|
buildah "${args[@]}"
|