Move from docker to podman

This commit is contained in:
Matteo Settenvini 2022-10-28 10:15:00 +02:00
parent e9b6e0b08d
commit 7885025135
Signed by: matteo
GPG Key ID: 8576CC1AD97D42DF
2 changed files with 6 additions and 6 deletions

View File

@ -10,25 +10,25 @@ stages:
.with_rust_image:
image: ${CI_REGISTRY_IMAGE}/rust:latest
needs:
- job: docker:build
- job: container:build
optional: true
docker:build:
container:build:
stage: build
variables:
CI_TAGGED_IMAGE: ${CI_REGISTRY_IMAGE}/rust:latest
before_script:
- docker login -u ${CI_REGISTRY_USER} -p ${CI_REGISTRY_PASSWORD} ${CI_REGISTRY}
- podman login -u "${CI_REGISTRY_USER}" -p "${CI_REGISTRY_PASSWORD}" "${CI_REGISTRY}"
- echo "Operating on registry ${CI_REGISTRY} and image ${CI_TAGGED_IMAGE}"
script:
- docker build --tag ${CI_TAGGED_IMAGE} .
- docker push ${CI_TAGGED_IMAGE}
- podman build --tag ${CI_TAGGED_IMAGE} .
- podman push ${CI_TAGGED_IMAGE}
when: manual
rules:
- if: $CI_PIPELINE_SOURCE == "web" && $FORCE_DOCKER_BUILD == "true"
- if: $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == "master"
changes:
- Dockerfile
- Containerfile
allow_failure: true
cargo:check: