Use buildah image

This commit is contained in:
me 2022-11-10 01:48:55 +01:00
parent 22f0ae5403
commit 515ad531b4
1 changed files with 8 additions and 8 deletions

View File

@ -7,14 +7,14 @@ steps:
- name: build git
image: quay.io/buildah/stable:latest
environment:
registry: git.fredhs.net
repo: git.fredhs.net/${DRONE_REPO}
dockerfile: Containerfile
username:
REGISTRY: git.fredhs.net
REPO: git.fredhs.net/${DRONE_REPO}
DOCKERFILE: Containerfile
USERNAME:
from_secret: git_user
password:
PASSWORD:
from_secret: git_password
commands:
- buildah login -u $username -p $password $registry
- buildah bud -t $repo:latest -f $dockerfile .
- buildah push $repo:latest
- buildah login -u ${USERNAME} -p ${PASSWORD} ${REGISTRY}
- buildah bud -t ${REPO}:latest -f ${DOCKERFILE} .
- buildah push ${REPO}:latest