From e854da83ca7acc76f0a0a4d860c9a8d215daadee Mon Sep 17 00:00:00 2001 From: Tobias Trabelsi Date: Wed, 20 Apr 2022 19:31:35 +0200 Subject: [PATCH] added support for ubuntu 22.04 --- .drone.yml | 40 ++++++++++++++++++++++++++++++++++++++++ README.md | 3 ++- ubuntu-22.04/Dockerfile | 16 ++++++++++++++++ 3 files changed, 58 insertions(+), 1 deletion(-) create mode 100644 ubuntu-22.04/Dockerfile diff --git a/.drone.yml b/.drone.yml index ced9580..bb8ad25 100644 --- a/.drone.yml +++ b/.drone.yml @@ -9,6 +9,27 @@ platform: steps: +- name: build-ubuntu-22 + image: plugins/kaniko + settings: + dockerfile: ubuntu-22.04/Dockerfile + password: + from_secret: docker_password + username: + from_secret: docker_username + repo: lerentis/ansible + tags: + - ubuntu-22.04-dev + when: + event: + - push + - pull_request + - cron + resources: + limits: + cpu: 200 + memory: 1024MiB + - name: build-ubuntu-20 image: plugins/kaniko:1.4.1 settings: @@ -305,6 +326,25 @@ platform: steps: +- name: build-ubuntu-22-release + image: plugins/kaniko + settings: + dockerfile: ubuntu-22.04/Dockerfile + password: + from_secret: docker_password + username: + from_secret: docker_username + repo: lerentis/ansible + tags: + - ubuntu-22.04 + when: + event: + - tag + resources: + limits: + cpu: 200 + memory: 1024MiB + - name: build-ubuntu-20-release image: plugins/kaniko:1.4.1 settings: diff --git a/README.md b/README.md index 3cc972b..f4c3fd7 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,7 @@ Available operating systems: * ubuntu-16.04 * ubuntu-18.04 * ubuntu-20.04 +* ubuntu-22.04 * arch ## run playbooks @@ -72,4 +73,4 @@ Note: /root/.ansible must not be an overlayfs, otherwise ssh accelerate won't wo * [project](https://git.uploadfilter24.eu/lerentis/ansible) -Current Version: 0.7.2 +Current Version: 1.5 diff --git a/ubuntu-22.04/Dockerfile b/ubuntu-22.04/Dockerfile new file mode 100644 index 0000000..317c4e2 --- /dev/null +++ b/ubuntu-22.04/Dockerfile @@ -0,0 +1,16 @@ +FROM ubuntu:22.04 + +RUN apt-get update \ + && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ + software-properties-common \ + apt-utils \ + ansible \ + python-apt \ + git-core \ + openssh-client \ + curl \ + && curl -L https://github.com/aelsabbahy/goss/releases/latest/download/goss-linux-amd64 -o /usr/local/bin/goss \ + && chmod +rx /usr/local/bin/goss \ + && apt-get clean + +CMD ["ansible-playbook", "--help"]