Move from docker to podman
This commit is contained in:
parent
e9b6e0b08d
commit
7885025135
|
@ -10,25 +10,25 @@ stages:
|
||||||
.with_rust_image:
|
.with_rust_image:
|
||||||
image: ${CI_REGISTRY_IMAGE}/rust:latest
|
image: ${CI_REGISTRY_IMAGE}/rust:latest
|
||||||
needs:
|
needs:
|
||||||
- job: docker:build
|
- job: container:build
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
docker:build:
|
container:build:
|
||||||
stage: build
|
stage: build
|
||||||
variables:
|
variables:
|
||||||
CI_TAGGED_IMAGE: ${CI_REGISTRY_IMAGE}/rust:latest
|
CI_TAGGED_IMAGE: ${CI_REGISTRY_IMAGE}/rust:latest
|
||||||
before_script:
|
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}"
|
- echo "Operating on registry ${CI_REGISTRY} and image ${CI_TAGGED_IMAGE}"
|
||||||
script:
|
script:
|
||||||
- docker build --tag ${CI_TAGGED_IMAGE} .
|
- podman build --tag ${CI_TAGGED_IMAGE} .
|
||||||
- docker push ${CI_TAGGED_IMAGE}
|
- podman push ${CI_TAGGED_IMAGE}
|
||||||
when: manual
|
when: manual
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_PIPELINE_SOURCE == "web" && $FORCE_DOCKER_BUILD == "true"
|
- if: $CI_PIPELINE_SOURCE == "web" && $FORCE_DOCKER_BUILD == "true"
|
||||||
- if: $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == "master"
|
- if: $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == "master"
|
||||||
changes:
|
changes:
|
||||||
- Dockerfile
|
- Containerfile
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
|
|
||||||
cargo:check:
|
cargo:check:
|
||||||
|
|
Loading…
Reference in New Issue