ci: use buildah image directly

This commit is contained in:
naskya 2024-05-18 20:43:58 +09:00
parent 1c0d2e43b4
commit 3a7c5fcdbb
No known key found for this signature in database
GPG key ID: 712D413B3A9FED5C

View file

@ -157,7 +157,7 @@ test:build:client_only:
build:container:
stage: build
image: docker.io/debian:bookworm-slim
image: quay.io/buildah/stable:latest
services: []
rules:
- if: $BUILD == 'false'
@ -181,11 +181,10 @@ build:container:
optional: true
- job: test:build:client_only
optional: true
variables:
STORAGE_DRIVER: vfs
before_script:
- apt-get update && apt-get -y upgrade
- apt-get install -y --no-install-recommends ca-certificates fuse-overlayfs
- echo 'deb https://deb.debian.org/debian trixie main' | tee /etc/apt/sources.list
- apt-get update && apt-get install -y --no-install-recommends --target-release trixie buildah
- buildah version
- buildah prune --all --force || true
- echo "${CI_REGISTRY_PASSWORD}" | buildah login --username "${CI_REGISTRY_USER}" --password-stdin "${CI_REGISTRY}"
- export IMAGE_TAG="${CI_REGISTRY}/${CI_PROJECT_PATH}/develop:not-for-production"
@ -193,11 +192,6 @@ build:container:
script:
- |-
buildah build \
--isolation chroot \
--device /dev/fuse:rw \
--security-opt seccomp=unconfined \
--security-opt apparmor=unconfined \
--cap-add all \
--platform linux/amd64 \
--layers \
--cache-to "${IMAGE_CACHE}" \