diff --git a/.drone.yml b/.drone.yml index 1aed94f..1d169ec 100644 --- a/.drone.yml +++ b/.drone.yml @@ -107,6 +107,18 @@ steps: - push - pull_request +- name: build-centos-8 + image: plugins/docker + settings: + dockerfile: centos-8/Dockerfile + dry_run: true + repo: lerentis/ansible + tag: centos-8 + when: + event: + - push + - pull_request + - name: build-centos-7 image: plugins/docker settings: @@ -257,6 +269,20 @@ steps: event: - tag +- name: build-centos-8-publish + image: plugins/docker + settings: + dockerfile: centos-8/Dockerfile + password: + from_secret: docker_password + repo: lerentis/ansible + tag: centos-8 + username: + from_secret: docker_username + when: + event: + - tag + - name: build-arch-publish image: plugins/docker settings: @@ -291,6 +317,7 @@ steps: - build-debian-8 - build-debian-7 - build-centos-7 + - build-centos-8 - build-arch - build-ubuntu-20-publish - build-ubuntu-18-publish @@ -301,4 +328,5 @@ steps: - build-debian-8-publish - build-debian-7-publish - build-centos-7-publish + - build-centos-8-publish - build-arch-publish diff --git a/centos-8/Dockerfile b/centos-8/Dockerfile index a80b15a..8775750 100644 --- a/centos-8/Dockerfile +++ b/centos-8/Dockerfile @@ -1,8 +1,7 @@ FROM centos:8 -RUN yum -y install epel-release \ - && yum -y install ansible git \ - && yum clean headers \ - && yum clean packages +RUN dnf -y install python3-pip &&\ + dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm &&\ + dnf install -y --enablerepo epel-playground ansible CMD ["ansible-playbook", "--help"]