diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 61516aa..94d7763 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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: diff --git a/Dockerfile b/Containerfile similarity index 100% rename from Dockerfile rename to Containerfile