From e312aac8558bbcf5c6b57546cdc63639e18bcd67 Mon Sep 17 00:00:00 2001 From: Tobias Trabelsi Date: Thu, 11 Jun 2020 12:45:06 +0200 Subject: [PATCH] and now to actually build it X_x --- .drone.yml | 28 ++++++++++++++++++++++++++++ centos-8/Dockerfile | 7 +++---- 2 files changed, 31 insertions(+), 4 deletions(-) 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"]