Move from docker to podman
This commit is contained in:
parent
e9b6e0b08d
commit
7885025135
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue