ubuntu 20.04 support

This commit is contained in:
lerentis 2020-06-06 00:16:38 +02:00
parent d8e7aed134
commit e91f74e2ba
2 changed files with 44 additions and 0 deletions

View File

@ -11,6 +11,18 @@ concurrency:
steps:
- name: build-ubuntu-20
image: plugins/docker
settings:
dockerfile: ubuntu-20.04/Dockerfile
dry_run: true
repo: lerentis/ansible
tag: ubuntu-20.04
when:
event:
- push
- pull_request
- name: build-ubuntu-19
image: plugins/docker
settings:
@ -159,6 +171,20 @@ steps:
event:
- tag
- name: build-ubuntu-20-publish
image: plugins/docker
settings:
dockerfile: ubuntu-20.04/Dockerfile
password:
from_secret: docker_password
repo: lerentis/ansible
tag: ubuntu-20.04
username:
from_secret: docker_username
when:
event:
- tag
- name: build-ubuntu-16-publish
image: plugins/docker
settings:
@ -282,6 +308,7 @@ steps:
- failure
- success
depends_on:
- build-ubuntu-20
- build-ubuntu-19
- build-ubuntu-18
- build-ubuntu-16
@ -292,6 +319,7 @@ steps:
- build-debian-7
- build-centos-7
- build-arch
- build-ubuntu-20-publish
- build-ubuntu-19-publish
- build-ubuntu-18-publish
- build-ubuntu-16-publish

16
ubuntu-20.04/Dockerfile Normal file
View File

@ -0,0 +1,16 @@
FROM ubuntu:20.04
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
software-properties-common \
apt-utils \
&& apt-add-repository ppa:ansible/ansible \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
ansible \
python-apt \
git-core \
openssh-client \
&& apt-get clean
CMD ["ansible-playbook", "--help"]