From e91f74e2ba07edc07792c103a371e06d547a6e17 Mon Sep 17 00:00:00 2001 From: lerentis Date: Sat, 6 Jun 2020 00:16:38 +0200 Subject: [PATCH] ubuntu 20.04 support --- .drone.yml | 28 ++++++++++++++++++++++++++++ ubuntu-20.04/Dockerfile | 16 ++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 ubuntu-20.04/Dockerfile diff --git a/.drone.yml b/.drone.yml index 0747931..1e3ae20 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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 diff --git a/ubuntu-20.04/Dockerfile b/ubuntu-20.04/Dockerfile new file mode 100644 index 0000000..b25a729 --- /dev/null +++ b/ubuntu-20.04/Dockerfile @@ -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"]