added support for ubuntu 22.04
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Tobias Trabelsi 2022-04-20 19:31:35 +02:00
parent 61bcffed6a
commit e854da83ca
Signed by: lerentis
GPG Key ID: FF0C2839718CAF2E
3 changed files with 58 additions and 1 deletions

View File

@ -9,6 +9,27 @@ platform:
steps: 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 - name: build-ubuntu-20
image: plugins/kaniko:1.4.1 image: plugins/kaniko:1.4.1
settings: settings:
@ -305,6 +326,25 @@ platform:
steps: 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 - name: build-ubuntu-20-release
image: plugins/kaniko:1.4.1 image: plugins/kaniko:1.4.1
settings: settings:

View File

@ -16,6 +16,7 @@ Available operating systems:
* ubuntu-16.04 * ubuntu-16.04
* ubuntu-18.04 * ubuntu-18.04
* ubuntu-20.04 * ubuntu-20.04
* ubuntu-22.04
* arch * arch
## run playbooks ## 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) * [project](https://git.uploadfilter24.eu/lerentis/ansible)
Current Version: 0.7.2 Current Version: 1.5

16
ubuntu-22.04/Dockerfile Normal file
View File

@ -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"]