mirror of
https://codeberg.org/hyperreal/vauxite-build
synced 2024-11-01 08:43:13 +01:00
New runner image; podman-in-podman executor
This commit is contained in:
parent
a37b129e5a
commit
c19174ad3d
@ -3,7 +3,6 @@ stages:
|
||||
- build
|
||||
|
||||
vauxite-compose-job:
|
||||
image: registry.fedoraproject.org/fedora:latest
|
||||
stage: compose
|
||||
tags:
|
||||
- podman-exec
|
||||
@ -14,9 +13,6 @@ vauxite-compose-job:
|
||||
BUILD_REPO: "/build-repo"
|
||||
SOURCE_REPO: "/source-repo"
|
||||
before_script:
|
||||
- printf "fastestmirror=True\ndeltarpm=True\n" | tee -a /etc/dnf/dnf.conf
|
||||
- dnf update -y
|
||||
- dnf install -y container-selinux git git-core ostree podman rpm-ostree rsync
|
||||
- podman login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
|
||||
script:
|
||||
- mkdir -p "$(pwd)/.tmp"
|
||||
@ -32,22 +28,22 @@ vauxite-compose-job:
|
||||
fi
|
||||
- rsync -aAX "${SOURCE_REPO}"/ "$(pwd)/.tmp"
|
||||
- rsync -aAX "$(pwd)/src/" "$(pwd)/.tmp"
|
||||
- rpm-ostree compose image --cachedir "${CACHE_DIR}" --initialize-mode=if-not-exists --format=registry "$(pwd)/.tmp/vauxite.json" "${CI_REGISTRY_IMAGE}:${RELVER}"
|
||||
- rpm-ostree compose image --cachedir "${CACHE_DIR}" --initialize-mode=if-not-exists --format=registry "$(pwd)/.tmp/vauxite.json" "${CI_REGISTRY_IMAGE}/vauxite:${RELVER}"
|
||||
|
||||
vauxite-nonfree-job:
|
||||
stage: build
|
||||
tags:
|
||||
- shell-exec
|
||||
- podman-in-podman
|
||||
variables:
|
||||
PODMAN_IMAGE_NAME: "${CI_REGISTRY_IMAGE}-nonfree:${CI_COMMIT_REF_SLUG}"
|
||||
before_script:
|
||||
- sudo 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:
|
||||
- cd oci/nonfree
|
||||
- sudo podman build -t "$PODMAN_IMAGE_NAME" .
|
||||
- sudo podman push "$PODMAN_IMAGE_NAME"
|
||||
- podman build -t "$PODMAN_IMAGE_NAME" .
|
||||
- podman push "$PODMAN_IMAGE_NAME"
|
||||
- |
|
||||
if [[ "$CI_COMMIT_BRANCH" == "$CI_DEFAULT_BRANCH" ]]; then
|
||||
sudo podman tag "$PODMAN_IMAGE_NAME" "$CI_REGISTRY_IMAGE:latest"
|
||||
sudo podman push "$CI_REGISTRY_IMAGE:latest"
|
||||
podman tag "$PODMAN_IMAGE_NAME" "$CI_REGISTRY_IMAGE:latest"
|
||||
podman push "$CI_REGISTRY_IMAGE:latest"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user