From 39c7266b49b96377985803c83c49f978defe1690 Mon Sep 17 00:00:00 2001 From: Tobias Trabelsi Date: Wed, 20 Apr 2022 19:38:19 +0200 Subject: [PATCH] some more rhel family love --- .drone.yml | 133 ++++++++++++++++++++++++++-- build-all.sh | 6 +- {fedora-24 => fedora-34}/Dockerfile | 2 +- fedora-35/Dockerfile | 11 +++ fedora-36/Dockerfile | 11 +++ fedora-37/Dockerfile | 11 +++ 6 files changed, 166 insertions(+), 8 deletions(-) rename {fedora-24 => fedora-34}/Dockerfile (94%) create mode 100644 fedora-35/Dockerfile create mode 100644 fedora-36/Dockerfile create mode 100644 fedora-37/Dockerfile diff --git a/.drone.yml b/.drone.yml index bb8ad25..a3c2eb5 100644 --- a/.drone.yml +++ b/.drone.yml @@ -188,17 +188,80 @@ platform: steps: -- name: build-fedora-24 +- name: build-fedora-34 image: plugins/kaniko:1.4.1 settings: - dockerfile: fedora-24/Dockerfile + dockerfile: fedora-34/Dockerfile password: from_secret: docker_password username: from_secret: docker_username repo: lerentis/ansible tags: - - fedora-24-dev + - fedora-34-dev + when: + event: + - push + - pull_request + - cron + resources: + limits: + cpu: 200 + memory: 1024MiB + +- name: build-fedora-35 + image: plugins/kaniko:1.4.1 + settings: + dockerfile: fedora-35/Dockerfile + password: + from_secret: docker_password + username: + from_secret: docker_username + repo: lerentis/ansible + tags: + - fedora-35-dev + when: + event: + - push + - pull_request + - cron + resources: + limits: + cpu: 200 + memory: 1024MiB + +- name: build-fedora-36 + image: plugins/kaniko:1.4.1 + settings: + dockerfile: fedora-36/Dockerfile + password: + from_secret: docker_password + username: + from_secret: docker_username + repo: lerentis/ansible + tags: + - fedora-36-dev + when: + event: + - push + - pull_request + - cron + resources: + limits: + cpu: 200 + memory: 1024MiB + +- name: build-fedora-37 + image: plugins/kaniko:1.4.1 + settings: + dockerfile: fedora-37/Dockerfile + password: + from_secret: docker_password + username: + from_secret: docker_username + repo: lerentis/ansible + tags: + - fedora-37-dev when: event: - push @@ -489,17 +552,75 @@ platform: steps: -- name: build-fedora-24-release +- name: build-fedora-34-release image: plugins/kaniko:1.4.1 settings: - dockerfile: fedora-24/Dockerfile + dockerfile: fedora-34/Dockerfile password: from_secret: docker_password username: from_secret: docker_username repo: lerentis/ansible tags: - - fedora-24 + - fedora-34 + when: + event: + - tag + resources: + limits: + cpu: 200 + memory: 1024MiB + +- name: build-fedora-35-release + image: plugins/kaniko:1.4.1 + settings: + dockerfile: fedora-35/Dockerfile + password: + from_secret: docker_password + username: + from_secret: docker_username + repo: lerentis/ansible + tags: + - fedora-35 + when: + event: + - tag + resources: + limits: + cpu: 200 + memory: 1024MiB + + +- name: build-fedora-36-release + image: plugins/kaniko:1.4.1 + settings: + dockerfile: fedora-36/Dockerfile + password: + from_secret: docker_password + username: + from_secret: docker_username + repo: lerentis/ansible + tags: + - fedora-36 + when: + event: + - tag + resources: + limits: + cpu: 200 + memory: 1024MiB + +- name: build-fedora-37-release + image: plugins/kaniko:1.4.1 + settings: + dockerfile: fedora-37/Dockerfile + password: + from_secret: docker_password + username: + from_secret: docker_username + repo: lerentis/ansible + tags: + - fedora-37 when: event: - tag diff --git a/build-all.sh b/build-all.sh index c35395c..8d047b5 100755 --- a/build-all.sh +++ b/build-all.sh @@ -3,7 +3,11 @@ cd ubuntu-18.04 && docker buildx build -t lerentis/ansible:ubuntu-18.04 --platfo cd ../ubuntu-16.04 && docker buildx build -t lerentis/ansible:ubuntu-16.04 --platform=linux/arm,linux/arm64,linux/amd64 . --push cd ../alpine-3 && docker buildx build -t lerentis/ansible:alpine-3 --platform=linux/arm,linux/arm64,linux/amd64 . --push cd ../ubuntu-20.04 && docker buildx build -t lerentis/ansible:ubuntu-20.04 --platform=linux/arm,linux/arm64,linux/amd64 . --push -cd ../fedora-24 && docker buildx build -t lerentis/ansible:fedora-24 --platform=linux/amd64 . --push +cd ../ubuntu-22.04 && docker buildx build -t lerentis/ansible:ubuntu-22.04 --platform=linux/arm,linux/arm64,linux/amd64 . --push +cd ../fedora-34 && docker buildx build -t lerentis/ansible:fedora-34 --platform=linux/amd64 . --push +cd ../fedora-35 && docker buildx build -t lerentis/ansible:fedora-35 --platform=linux/amd64 . --push +cd ../fedora-36 && docker buildx build -t lerentis/ansible:fedora-36 --platform=linux/amd64 . --push +cd ../fedora-37 && docker buildx build -t lerentis/ansible:fedora-37 --platform=linux/amd64 . --push cd ../debian-9 && docker buildx build -t lerentis/ansible:debian-9 --platform=linux/arm,linux/amd64 . --push cd ../debian-8 && docker buildx build -t lerentis/ansible:debian-8 --platform=linux/arm,linux/amd64 . --push cd ../debian-10 && docker buildx build -t lerentis/ansible:debian-10 --platform=linux/arm64,linux/amd64 . --push diff --git a/fedora-24/Dockerfile b/fedora-34/Dockerfile similarity index 94% rename from fedora-24/Dockerfile rename to fedora-34/Dockerfile index 8909df3..76b7a6d 100644 --- a/fedora-24/Dockerfile +++ b/fedora-34/Dockerfile @@ -1,4 +1,4 @@ -FROM fedora:24 +FROM fedora:34 RUN dnf -y install \ ansible \ diff --git a/fedora-35/Dockerfile b/fedora-35/Dockerfile new file mode 100644 index 0000000..290b151 --- /dev/null +++ b/fedora-35/Dockerfile @@ -0,0 +1,11 @@ +FROM fedora:35 + +RUN dnf -y install \ + ansible \ + openssh-clients \ + 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 \ + && dnf clean all + +CMD ["ansible-playbook", "--help"] diff --git a/fedora-36/Dockerfile b/fedora-36/Dockerfile new file mode 100644 index 0000000..bc7f758 --- /dev/null +++ b/fedora-36/Dockerfile @@ -0,0 +1,11 @@ +FROM fedora:36 + +RUN dnf -y install \ + ansible \ + openssh-clients \ + 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 \ + && dnf clean all + +CMD ["ansible-playbook", "--help"] diff --git a/fedora-37/Dockerfile b/fedora-37/Dockerfile new file mode 100644 index 0000000..2ab1192 --- /dev/null +++ b/fedora-37/Dockerfile @@ -0,0 +1,11 @@ +FROM fedora:37 + +RUN dnf -y install \ + ansible \ + openssh-clients \ + 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 \ + && dnf clean all + +CMD ["ansible-playbook", "--help"]