mirror of
https://codeberg.org/hyperreal/containers
synced 2024-11-01 16:43:10 +01:00
49 lines
2.5 KiB
YAML
49 lines
2.5 KiB
YAML
stages:
|
|
- build
|
|
|
|
fedora-build-job:
|
|
stage: build
|
|
tags:
|
|
- podman-exec
|
|
image: git.hyperreal.coffee:5050/fedora-atomic/containers/buildah:latest
|
|
variables:
|
|
STORAGE_DRIVER: vfs
|
|
BUILDAH_FORMAT: docker
|
|
BUILDAH_ISOLATION: chroot
|
|
FQ_IMAGE_NAME: "$CI_REGISTRY_IMAGE/fedora:latest"
|
|
before_script:
|
|
- buildah login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" "$CI_REGISTRY"
|
|
script:
|
|
- container=$(buildah from registry.fedoraproject.org/fedora:latest)
|
|
- buildah run $container -- sh -c 'printf "fastestmirror=True\ndeltarpm=True\n" | tee -a /etc/dnf/dnf.conf'
|
|
- buildah run $container -- dnf update -y
|
|
- buildah run $container -- dnf install -y '@container-management' '@development-tools' '@c-development' container-selinux ostree rpm-ostree rsync
|
|
- buildah run $container -- dnf clean all
|
|
- buildah commit --squash --rm $container "$FQ_IMAGE_NAME"
|
|
- buildah push "$FQ_IMAGE_NAME"
|
|
|
|
fedora-distrobox-build-job:
|
|
stage: build
|
|
tags:
|
|
- podman-exec
|
|
image: git.hyperreal.coffee:5050/fedora-atomic/containers/buildah:latest
|
|
variables:
|
|
STORAGE_DRIVER: vfs
|
|
BUILDAH_FORMAT: docker
|
|
BUILDAH_ISOLATION: chroot
|
|
FQ_IMAGE_NAME: "$CI_REGISTRY_IMAGE/fedora-distrobox:39"
|
|
before_script:
|
|
- buildah login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" "$CI_REGISTRY"
|
|
script:
|
|
- container=$(buildah from registry.fedoraproject.org/fedora-toolbox:39)
|
|
- buildah run $container -- sh -c 'printf "fastestmirror=True\ndeltarpm=True\n" | tee -a /etc/dnf/dnf.conf'
|
|
- buildah run $container -- dnf update -y
|
|
- buildah run $container -- dnf copr enable -y varlad/zellij
|
|
- buildah run $container -- dnf copr enable -y atim/starship
|
|
- buildah run $container -- sh -c 'printf "[charm]\nname=Charm\nbaseurl=https://repo.charm.sh/yum/\nenabled=1\ngpgcheck=1\ngpgkey=https://repo.charm.sh/yum/gpg.key\n" | tee /etc/yum.repos.d/charm.repo'
|
|
- buildah run $container -- dnf install -y '@c-development' '@development-tools' ShellCheck autossh bat btop charm cmake diff-so-fancy emacs fd-find fzf git git-core glow golang gum htop httpie hugo hyperfine jc jq just lsd lsof neofetch nodejs npm nu openssl-devel pass perl-Image-ExifTool pipx procs pv python3-devel python3-pip ranger ripgrep rsync shfmt starship tealdeer trash-cli vim-default-editor w3m wget xclip xsel zellij zsh --allowerasing
|
|
- buildah run $container -- dnf clean all
|
|
- buildah config --shell /usr/bin/nu $container
|
|
- buildah commit --squash --rm $container "$FQ_IMAGE_NAME"
|
|
- buildah push "$FQ_IMAGE_NAME"
|