Try with sudo

This commit is contained in:
Jeffrey Serio 2024-03-04 06:47:45 -06:00
parent 6ec1fe9211
commit a37b129e5a

View File

@ -41,13 +41,13 @@ vauxite-nonfree-job:
variables:
PODMAN_IMAGE_NAME: "${CI_REGISTRY_IMAGE}-nonfree:${CI_COMMIT_REF_SLUG}"
before_script:
- podman login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
- sudo podman login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
script:
- cd oci/nonfree
- podman build -t "$PODMAN_IMAGE_NAME" .
- podman push "$PODMAN_IMAGE_NAME"
- sudo podman build -t "$PODMAN_IMAGE_NAME" .
- sudo podman push "$PODMAN_IMAGE_NAME"
- |
if [[ "$CI_COMMIT_BRANCH" == "$CI_DEFAULT_BRANCH" ]]; then
podman tag "$PODMAN_IMAGE_NAME" "$CI_REGISTRY_IMAGE:latest"
podman push "$CI_REGISTRY_IMAGE:latest"
sudo podman tag "$PODMAN_IMAGE_NAME" "$CI_REGISTRY_IMAGE:latest"
sudo podman push "$CI_REGISTRY_IMAGE:latest"
fi