Build separate debug image. Switch from kaniko to buildah.

This commit is contained in:
Daniel Lundin
2019-10-02 10:26:38 +02:00
parent 4f8bf01f4a
commit 6f1e923c9a
4 changed files with 22 additions and 18 deletions
+5 -14
View File
@@ -3,17 +3,8 @@ steps:
agents:
queue: default
os: linux
plugins:
- EmbarkStudios/k8s#1.1.0:
image: gcr.io/kaniko-project/executor:latest
command:
- --destination=embarkstudios/wireguard-ui
- --context=/build
- --reproducible
- --cache=true
- --cache-repo=kaniko-cache.buildkite.svc.cluster.local/kaniko/cache
- --cache-dir=/cache
mount-secret:
- docker-hub-credentials:/kaniko/.docker
mount-hostpath:
- /mnt/disks/ssd0/cache/kaniko:/cache
commands:
- buildah bud --layers -t embarkstudios/wireguard-ui:latest -f Dockerfile .
- buildah bud --layers -t embarkstudios/wireguard-ui:debug -f Dockerfile.debug .
- buildah push embarkstudios/wireguard-ui:latest
- buildah push embarkstudios/wireguard-ui:debug