[ci] try buildah
This commit is contained in:
parent
94e09a546b
commit
0cad726f8c
|
@ -12,6 +12,10 @@ image: python:3.8
|
|||
# only cache local items.
|
||||
variables:
|
||||
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
|
||||
# REGISTRY_USERNAME - secret variable
|
||||
# REGISTRY_PASSWORD - secret variable
|
||||
# REGISTRY_SERVER - secret variable
|
||||
IMAGE_NAME: ${REGISTRY_SERVER}/malves/${CI_PROJECT_NAME}
|
||||
|
||||
# Pip's cache doesn't store the python packages
|
||||
# https://pip.pypa.io/en/stable/reference/pip_install/#caching
|
||||
|
@ -43,6 +47,15 @@ run:
|
|||
- dist/*.whl
|
||||
|
||||
build:
|
||||
image: docker:19.03.12-dind
|
||||
image: gite.lirmm.fr:5555/si-v4/docker
|
||||
dependencies:
|
||||
- build
|
||||
before_script:
|
||||
- podman version
|
||||
- buildah version
|
||||
# - podman login --username "${REGISTRY_USERNAME}" --password "${REGISTRY_PASSWORD}" "${REGISTRY_SERVER}"
|
||||
script:
|
||||
- docker build -t halfapi .
|
||||
- buildah bud -t ${IMAGE_NAME}:${CI_COMMIT_SHA} .
|
||||
# - buildah push ${IMAGE_NAME}:${CI_COMMIT_SHA} docker://${IMAGE_NAME}:${CI_COMMIT_SHA}
|
||||
after_script:
|
||||
# - podman logout "${REGISTRY_SERVER}"
|
||||
|
|
Loading…
Reference in New Issue