Skip to content
Snippets Groups Projects
Commit b848cd44 authored by Nicolas M. Thiéry's avatar Nicolas M. Thiéry
Browse files

Test with docker build in shell executor

parent 450811c7
Branches
No related tags found
No related merge requests found
Pipeline #51187 canceled
......@@ -12,12 +12,13 @@ build_image:
stage: build_image
# image: tomkukral/buildah:0.31
before_script:
- docker --version
- podman --version
- podman login --username "${CI_REGISTRY_USER}" --password "${CI_REGISTRY_PASSWORD}" "${CI_REGISTRY}"
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
# - podman login --username "${CI_REGISTRY_USER}" --password "${CI_REGISTRY_PASSWORD}" "${CI_REGISTRY}"
script:
- buildah build-using-dockerfile --format docker -t ${DEPENDENCIES_IMAGE_NAME} --file Dockerfile-CI .
- buildah push --authfile ${REGISTRY_AUTH_FILE} ${DEPENDENCIES_IMAGE_NAME}
- docker build -t ${DEPENDENCIES_IMAGE_NAME} --file Dockerfile-CI .
- docker push ${DEPENDENCIES_IMAGE_NAME}
# - buildah build-using-dockerfile --format docker -t ${DEPENDENCIES_IMAGE_NAME} --file Dockerfile-CI .
# - buildah push --authfile ${REGISTRY_AUTH_FILE} ${DEPENDENCIES_IMAGE_NAME}
after_script:
- podman logout "${CI_REGISTRY}"
# only:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment