Use buildah image
This commit is contained in:
parent
22f0ae5403
commit
515ad531b4
16
.drone.yml
16
.drone.yml
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue