[ci] try buildah

This commit is contained in:
Maxime Alves LIRMM@home 2021-11-01 10:29:12 +01:00
parent 94e09a546b
commit 0cad726f8c
1 changed files with 15 additions and 2 deletions

View File

@ -12,6 +12,10 @@ image: python:3.8
# only cache local items. # only cache local items.
variables: variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip" 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 # Pip's cache doesn't store the python packages
# https://pip.pypa.io/en/stable/reference/pip_install/#caching # https://pip.pypa.io/en/stable/reference/pip_install/#caching
@ -43,6 +47,15 @@ run:
- dist/*.whl - dist/*.whl
build: 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: 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}"