ci: build containers using buildah
This commit is contained in:
parent
685c3ea37d
commit
2708a93201
21
.drone.yml
21
.drone.yml
@ -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
|
||||||
|
|
||||||
...
|
...
|
||||||
|
Loading…
Reference in New Issue
Block a user