Files
fedora-infra_ansible/roles/push-container-registry/tasks/main.yml
Clement Verna 85be95fb79 Replace the push-docker role by login-registry and use podman.
This commit replaces the push-docker role which depends on docker
by a new role login-registry which is using podman instead.

Fixes https://pagure.io/fedora-infrastructure/issue/8393

Signed-off-by: Clement Verna <cverna@tutanota.com>
2020-04-24 21:34:21 +02:00

42 lines
939 B
YAML

---
# tasks file for push-container-registry
# This role install skopeo and the certificates
# needed to push container images to our production registry.
# Note : push to the candidate-registry is done using docker login
# see the login-registry role.
- name: install necessary packages
package:
name: "{{item}}"
state: present
with_items:
- skopeo
tags:
- push-container-registry
- name: ensure cert dir exists
file:
path: "{{cert_dest_dir}}"
state: directory
tags:
- push-container-registry
- name: install client cert for registry
copy:
src: "{{cert_src}}"
dest: "{{cert_dest_dir}}/client.cert"
owner: root
group: "{{ certs_group }}"
mode: 0640
tags:
- push-container-registry
- name: install client key for registry
copy:
src: "{{key_src}}"
dest: "{{cert_dest_dir}}/client.key"
group: "{{ certs_group }}"
mode: 0640
tags:
- push-container-registry