Check status of container

This commit is contained in:
Jeffrey Serio 2024-03-06 11:41:32 -06:00
parent 245bc3645b
commit 26362ea7b9

View File

@ -13,7 +13,6 @@ compose-job:
BUILD_REPO: "/build-repo" BUILD_REPO: "/build-repo"
SOURCE_REPO: "/source-repo" SOURCE_REPO: "/source-repo"
before_script: before_script:
- podman image prune -f
- podman login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" "$CI_REGISTRY" - podman login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" "$CI_REGISTRY"
script: script:
- mkdir -p "$(pwd)/.tmp" - mkdir -p "$(pwd)/.tmp"
@ -37,7 +36,7 @@ nonfree-build-job:
- buildah-exec - buildah-exec
image: git.hyperreal.coffee:5050/fedora-atomic/containers/buildah:latest image: git.hyperreal.coffee:5050/fedora-atomic/containers/buildah:latest
variables: variables:
STORAGE_DRIVER: overlay2 STORAGE_DRIVER: overlay
BUILDAH_FORMAT: docker BUILDAH_FORMAT: docker
BUILDAH_ISOLATION: chroot BUILDAH_ISOLATION: chroot
FQ_IMAGE_NAME: "$CI_REGISTRY_IMAGE/vauxite-nonfree:39" FQ_IMAGE_NAME: "$CI_REGISTRY_IMAGE/vauxite-nonfree:39"
@ -46,8 +45,10 @@ nonfree-build-job:
- buildah login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" "$CI_REGISTRY" - buildah login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" "$CI_REGISTRY"
script: script:
- container=$(buildah from git.hyperreal.coffee:5050/fedora-atomic/vauxite-build/vauxite:39) - container=$(buildah from git.hyperreal.coffee:5050/fedora-atomic/vauxite-build/vauxite:39)
- buildah containers
- buildah run $container -- rpm-ostree install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-39.noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-39.noarch.rpm - buildah run $container -- rpm-ostree install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-39.noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-39.noarch.rpm
- buildah run $container -- rpm-ostree override remove libavcodec-free libavfilter-free libavformat-free libavutil-free libpostproc-free libswresample-free libswscale-free --install ffmpeg-libs - buildah run $container -- rpm-ostree override remove libavcodec-free libavfilter-free libavformat-free libavutil-free libpostproc-free libswresample-free libswscale-free --install ffmpeg-libs
- buildah run $container -- ostree container commit - buildah run $container -- ostree container commit
- buildah containers
- buildah commit --squash --rm $container "$FQ_IMAGE_NAME" - buildah commit --squash --rm $container "$FQ_IMAGE_NAME"
- buildah push "$FQ_IMAGE_NAME" - buildah push "$FQ_IMAGE_NAME"