ci: build containers using buildah
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing

This commit is contained in:
surtur 2022-11-05 19:12:22 +01:00
parent 685c3ea37d
commit 2708a93201
Signed by: wanderer
SSH Key Fingerprint: SHA256:MdCZyJ2sHLltrLBp0xQO0O1qTW9BT/xl5nXkDvhlMCI

@ -23,15 +23,18 @@ steps:
event: event:
exclude: [cron] exclude: [cron]
- name: kaniko-build - name: buildah build
pull: always pull: always
image: docker.io/immawanderer/drone-kaniko:linux-amd64 image: docker.io/library/alpine:3.16.2
settings: environment:
dockerfile: Containerfile BUILD_DATE: $(date -u +"%Y-%m-%dT%H:%M:%SZ")
context: . VCS_REF: ${DRONE_COMMIT_SHA:0:7}
args: BUILDAH_ISOLATION: chroot
- BUILD_DATE="$(date -u +"%Y-%m-%dT%H:%M:%SZ")" _BUILDAH_STARTED_IN_USERNS: ""
- VCS_REF=${DRONE_COMMIT_SHA:0:7} commands:
- apk update
- apk add --no-cache buildah
- buildah bud -f Containerfile --build-arg BUILD_DATE="$BUILD_DATE" --build-arg VCS_REF="$VCS_REF"
when: when:
ref: ref:
- refs/heads/feature-** - refs/heads/feature-**
@ -69,6 +72,6 @@ trigger:
--- ---
kind: signature kind: signature
hmac: 33bd2009f89e9c372006ab525b08184491c5c6ccc8941eeb11848eda0abd6ac6 hmac: f2f21e0af4b1f6eb8c1e42ccd55d679009480b0a2c883185078dcfa5e158fb98
... ...