and now to actually build it X_x

This commit is contained in:
Tobias Trabelsi 2020-06-11 12:45:06 +02:00
parent a8b69e8750
commit e312aac855
2 changed files with 31 additions and 4 deletions

View File

@ -107,6 +107,18 @@ steps:
- push - push
- pull_request - 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 - name: build-centos-7
image: plugins/docker image: plugins/docker
settings: settings:
@ -257,6 +269,20 @@ steps:
event: event:
- tag - 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 - name: build-arch-publish
image: plugins/docker image: plugins/docker
settings: settings:
@ -291,6 +317,7 @@ steps:
- build-debian-8 - build-debian-8
- build-debian-7 - build-debian-7
- build-centos-7 - build-centos-7
- build-centos-8
- build-arch - build-arch
- build-ubuntu-20-publish - build-ubuntu-20-publish
- build-ubuntu-18-publish - build-ubuntu-18-publish
@ -301,4 +328,5 @@ steps:
- build-debian-8-publish - build-debian-8-publish
- build-debian-7-publish - build-debian-7-publish
- build-centos-7-publish - build-centos-7-publish
- build-centos-8-publish
- build-arch-publish - build-arch-publish

View File

@ -1,8 +1,7 @@
FROM centos:8 FROM centos:8
RUN yum -y install epel-release \ RUN dnf -y install python3-pip &&\
&& yum -y install ansible git \ dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm &&\
&& yum clean headers \ dnf install -y --enablerepo epel-playground ansible
&& yum clean packages
CMD ["ansible-playbook", "--help"] CMD ["ansible-playbook", "--help"]