Skip to content
Snippets Groups Projects
Commit 3e3574b7 authored by André MAYORAZ's avatar André MAYORAZ
Browse files

[ci] change command to podman

parent 33dd5944
No related branches found
No related tags found
No related merge requests found
Pipeline #64024 failed with stages
in 6 seconds
......@@ -26,33 +26,20 @@ build_image:
stage: build_image
image:
name: quay.io/podman/stable
before_script:
# - if [[ $CI_RUNNER_TAGS == *"docker,"* ]]; then git config --global --add safe.directory ${CI_PROJECT_DIR}; fi
# - ln -s /usr/bin/podman /usr/bin/docker
# - docker info
- docker run --privileged
script:
- docker build --tag docker.idiap.ch/bob/bdt:latest .
- podman build -t docker.idiap.ch/bob/bdt:latest .
push_image:
tags:
- docker
- bob
image: docker:20.10.12
services:
- name : docker:dind
command: [ "--tls=false" ]
variables:
DOCKER_HOST: tcp://docker:2375/
DOCKER_DRIVER: overlay2
stage: push_image
image:
name: quay.io/podman/stable
before_script:
- if [[ $CI_RUNNER_TAGS == *"docker,"* ]]; then git config --global --add safe.directory ${CI_PROJECT_DIR}; fi
- docker info
- podman login -u gitlab-ci-token -p "${CI_JOB_TOKEN}" docker.idiap.ch
script:
- echo ${CI_JOB_TOKEN} | docker login docker.idiap.ch -u gitlab-ci-token --password-stdin
- docker push docker.idiap.ch/bob/bdt:latest
- podman push docker.idiap.ch/bob/bdt:latest
## Build targets
#.build_template:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment