ci: use buildah image directly
This commit is contained in:
parent
1c0d2e43b4
commit
3a7c5fcdbb
1 changed files with 4 additions and 10 deletions
|
@ -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}" \
|
||||
|
|
Loading…
Reference in a new issue