Skip to content

Commit c455565

Browse files
committed
Check if adding sudo fix the CI
Signed-off-by: Alice Frosi <afrosi@redhat.com>
1 parent f6efeba commit c455565

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

coreos/justfile

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ config := if os == "scos" { scos_config } else { fcos_config }
2525
full_name := if os == "scos" { "centos-stream-coreos" } else { "fedora-coreos" }
2626

2727
build:
28-
podman build --no-cache --build-arg BASE={{base}} --build-arg COM_COREOS_OSNAME={{label}} -t {{image}} -f Containerfile .
28+
sudo podman build --no-cache --build-arg BASE={{base}} --build-arg COM_COREOS_OSNAME={{label}} -t {{image}} -f Containerfile .
2929

3030
oci-archive:
31-
skopeo copy containers-storage:{{image}} oci-archive:{{archive}}
31+
sudo skopeo copy containers-storage:{{image}} oci-archive:{{archive}}
3232

3333
# Reusable cosa function definition
3434
cosa_function := '''
@@ -38,18 +38,17 @@ cosa_function := '''
3838
3939
# Default container image
4040
COREOS_ASSEMBLER_CONTAINER_LATEST="quay.io/coreos-assembler/coreos-assembler:latest"
41-
podman pull $COREOS_ASSEMBLER_CONTAINER_LATEST
41+
sudo podman pull $COREOS_ASSEMBLER_CONTAINER_LATEST
4242
43-
set -x
44-
podman run --rm -ti --security-opt=label=disable --privileged \
43+
set -ex
44+
sudo podman run --rm -ti --security-opt=label=disable --privileged \
4545
-v=${PWD}:/srv/ --device=/dev/kvm --device=/dev/fuse \
4646
--tmpfs=/tmp -v=/var/tmp:/var/tmp --name=cosa \
4747
${COREOS_ASSEMBLER_CONFIG_GIT:+-v=$COREOS_ASSEMBLER_CONFIG_GIT:/srv/src/config/:ro} \
4848
${COREOS_ASSEMBLER_GIT:+-v=$COREOS_ASSEMBLER_GIT/src/:/usr/lib/coreos-assembler/:ro} \
4949
${COREOS_ASSEMBLER_ADD_CERTS:+-v=/etc/pki/ca-trust:/etc/pki/ca-trust:ro} \
5050
${COREOS_ASSEMBLER_CONTAINER_RUNTIME_ARGS} \
5151
${COREOS_ASSEMBLER_CONTAINER:-$COREOS_ASSEMBLER_CONTAINER_LATEST} "$@"
52-
set +xe
5352
}
5453
'''
5554

0 commit comments

Comments
 (0)