Compare commits
23 Commits
Author | SHA1 | Date | |
---|---|---|---|
9c948d5788
|
|||
f15e77fb88
|
|||
12fe4cf41a
|
|||
39c7266b49
|
|||
e854da83ca
|
|||
61bcffed6a | |||
d07b70a09f
|
|||
d6a66a4e8f
|
|||
d661d20093
|
|||
da6b0189ce
|
|||
fb3a10a4d3
|
|||
9245bc02a6
|
|||
974e29e405
|
|||
5c06f04f69
|
|||
c2252c72f0
|
|||
6bf134506d
|
|||
8bafe97a18
|
|||
3728e4d4d2
|
|||
d4b71fcddc | |||
29a5ac9221
|
|||
f6128fe7cf
|
|||
223a3ae308
|
|||
15a8a45e2b
|
44
.drone.jsonnet
Normal file
44
.drone.jsonnet
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
local Pipeline(tag) = {
|
||||||
|
kind: "pipeline",
|
||||||
|
type: "kubernetes",
|
||||||
|
name: tag + "build",
|
||||||
|
platform: {
|
||||||
|
os: "linux",
|
||||||
|
arch: "amd64",
|
||||||
|
},
|
||||||
|
steps: [
|
||||||
|
{
|
||||||
|
name: tag,
|
||||||
|
image: "plugins/kaniko",
|
||||||
|
settings: {
|
||||||
|
repo: "lerentis/ansible",
|
||||||
|
username: { "from_secret": "docker_username" },
|
||||||
|
password: { "from_secret": "docker_password" },
|
||||||
|
dockerfile: tag + "/Dockerfile",
|
||||||
|
tags: [ tag ],
|
||||||
|
},
|
||||||
|
resources: {
|
||||||
|
limits: {
|
||||||
|
cpu: 200,
|
||||||
|
memory: "1024MiB",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
when: [ "push", "pull_request", "cron" ]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
[
|
||||||
|
Pipeline("ubuntu-20.04"),
|
||||||
|
Pipeline("ubuntu-18.04"),
|
||||||
|
Pipeline("ubuntu-14.04"),
|
||||||
|
Pipeline("debian-8"),
|
||||||
|
Pipeline("debian-9"),
|
||||||
|
Pipeline("debian-10"),
|
||||||
|
Pipeline("centos-7"),
|
||||||
|
Pipeline("almalinux-8"),
|
||||||
|
Pipeline("fedora-24"),
|
||||||
|
Pipeline("alpine-3"),
|
||||||
|
Pipeline("arch"),
|
||||||
|
]
|
417
.drone.yml
417
.drone.yml
@ -9,8 +9,29 @@ platform:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: build-ubuntu-20
|
- name: build-ubuntu-22
|
||||||
image: plugins/kaniko
|
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:
|
settings:
|
||||||
dockerfile: ubuntu-20.04/Dockerfile
|
dockerfile: ubuntu-20.04/Dockerfile
|
||||||
password:
|
password:
|
||||||
@ -24,9 +45,14 @@ steps:
|
|||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
- pull_request
|
- pull_request
|
||||||
|
- cron
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 200
|
||||||
|
memory: 1024MiB
|
||||||
|
|
||||||
- name: build-ubuntu-18
|
- name: build-ubuntu-18
|
||||||
image: plugins/kaniko
|
image: plugins/kaniko:1.4.1
|
||||||
settings:
|
settings:
|
||||||
dockerfile: ubuntu-18.04/Dockerfile
|
dockerfile: ubuntu-18.04/Dockerfile
|
||||||
password:
|
password:
|
||||||
@ -40,9 +66,14 @@ steps:
|
|||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
- pull_request
|
- pull_request
|
||||||
|
- cron
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 200
|
||||||
|
memory: 1024MiB
|
||||||
|
|
||||||
- name: build-ubuntu-16
|
- name: build-ubuntu-16
|
||||||
image: plugins/kaniko
|
image: plugins/kaniko:1.4.1
|
||||||
settings:
|
settings:
|
||||||
dockerfile: ubuntu-16.04/Dockerfile
|
dockerfile: ubuntu-16.04/Dockerfile
|
||||||
password:
|
password:
|
||||||
@ -56,9 +87,14 @@ steps:
|
|||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
- pull_request
|
- pull_request
|
||||||
|
- cron
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 200
|
||||||
|
memory: 1024MiB
|
||||||
|
|
||||||
- name: build-ubuntu-14
|
- name: build-ubuntu-14
|
||||||
image: plugins/kaniko
|
image: plugins/kaniko:1.4.1
|
||||||
settings:
|
settings:
|
||||||
dockerfile: ubuntu-14.04/Dockerfile
|
dockerfile: ubuntu-14.04/Dockerfile
|
||||||
password:
|
password:
|
||||||
@ -72,9 +108,14 @@ steps:
|
|||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
- pull_request
|
- pull_request
|
||||||
|
- cron
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 200
|
||||||
|
memory: 1024MiB
|
||||||
|
|
||||||
- name: build-debian-8
|
- name: build-debian-8
|
||||||
image: plugins/kaniko
|
image: plugins/kaniko:1.4.1
|
||||||
settings:
|
settings:
|
||||||
dockerfile: debian-8/Dockerfile
|
dockerfile: debian-8/Dockerfile
|
||||||
password:
|
password:
|
||||||
@ -88,9 +129,14 @@ steps:
|
|||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
- pull_request
|
- pull_request
|
||||||
|
- cron
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 200
|
||||||
|
memory: 1024MiB
|
||||||
|
|
||||||
- name: build-debian-9
|
- name: build-debian-9
|
||||||
image: plugins/kaniko
|
image: plugins/kaniko:1.4.1
|
||||||
settings:
|
settings:
|
||||||
dockerfile: debian-9/Dockerfile
|
dockerfile: debian-9/Dockerfile
|
||||||
password:
|
password:
|
||||||
@ -104,9 +150,14 @@ steps:
|
|||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
- pull_request
|
- pull_request
|
||||||
|
- cron
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 200
|
||||||
|
memory: 1024MiB
|
||||||
|
|
||||||
- name: build-debian-10
|
- name: build-debian-10
|
||||||
image: plugins/kaniko
|
image: plugins/kaniko:1.4.1
|
||||||
settings:
|
settings:
|
||||||
dockerfile: debian-10/Dockerfile
|
dockerfile: debian-10/Dockerfile
|
||||||
password:
|
password:
|
||||||
@ -120,6 +171,11 @@ steps:
|
|||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
- pull_request
|
- pull_request
|
||||||
|
- cron
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 200
|
||||||
|
memory: 1024MiB
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
@ -132,40 +188,113 @@ platform:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: build-fedora-24
|
- name: build-fedora-34
|
||||||
image: plugins/kaniko
|
image: plugins/kaniko:1.4.1
|
||||||
settings:
|
settings:
|
||||||
dockerfile: fedora-24/Dockerfile
|
dockerfile: fedora-34/Dockerfile
|
||||||
password:
|
password:
|
||||||
from_secret: docker_password
|
from_secret: docker_password
|
||||||
username:
|
username:
|
||||||
from_secret: docker_username
|
from_secret: docker_username
|
||||||
repo: lerentis/ansible
|
repo: lerentis/ansible
|
||||||
tags:
|
tags:
|
||||||
- fedora-24-dev
|
- fedora-34-dev
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
- pull_request
|
- pull_request
|
||||||
|
- cron
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 200
|
||||||
|
memory: 1024MiB
|
||||||
|
|
||||||
- name: build-centos-8
|
- name: build-fedora-35
|
||||||
image: plugins/kaniko
|
image: plugins/kaniko:1.4.1
|
||||||
settings:
|
settings:
|
||||||
dockerfile: centos-8/Dockerfile
|
dockerfile: fedora-35/Dockerfile
|
||||||
password:
|
password:
|
||||||
from_secret: docker_password
|
from_secret: docker_password
|
||||||
username:
|
username:
|
||||||
from_secret: docker_username
|
from_secret: docker_username
|
||||||
repo: lerentis/ansible
|
repo: lerentis/ansible
|
||||||
tags:
|
tags:
|
||||||
- centos-8-dev
|
- fedora-35-dev
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
- pull_request
|
- 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
|
||||||
|
- pull_request
|
||||||
|
- cron
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 200
|
||||||
|
memory: 1024MiB
|
||||||
|
|
||||||
|
- name: build-almalinux-8
|
||||||
|
image: plugins/kaniko:1.4.1
|
||||||
|
settings:
|
||||||
|
dockerfile: almalinux-8/Dockerfile
|
||||||
|
password:
|
||||||
|
from_secret: docker_password
|
||||||
|
username:
|
||||||
|
from_secret: docker_username
|
||||||
|
repo: lerentis/ansible
|
||||||
|
tags:
|
||||||
|
- almalinux-8-dev
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
- pull_request
|
||||||
|
- cron
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 200
|
||||||
|
memory: 1024MiB
|
||||||
|
|
||||||
- name: build-centos-7
|
- name: build-centos-7
|
||||||
image: plugins/kaniko
|
image: plugins/kaniko:1.4.1
|
||||||
settings:
|
settings:
|
||||||
dockerfile: centos-7/Dockerfile
|
dockerfile: centos-7/Dockerfile
|
||||||
password:
|
password:
|
||||||
@ -179,6 +308,11 @@ steps:
|
|||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
- pull_request
|
- pull_request
|
||||||
|
- cron
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 200
|
||||||
|
memory: 1024MiB
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
@ -191,21 +325,47 @@ platform:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: build-alpine-3
|
- name: build-alpine-3-14
|
||||||
image: plugins/kaniko
|
image: plugins/kaniko:1.4.1
|
||||||
settings:
|
settings:
|
||||||
dockerfile: alpine-3/Dockerfile
|
dockerfile: alpine-3.14/Dockerfile
|
||||||
password:
|
password:
|
||||||
from_secret: docker_password
|
from_secret: docker_password
|
||||||
username:
|
username:
|
||||||
from_secret: docker_username
|
from_secret: docker_username
|
||||||
repo: lerentis/ansible
|
repo: lerentis/ansible
|
||||||
tags:
|
tags:
|
||||||
- alpine-3-dev
|
- alpine-3.14-dev
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
- pull_request
|
- pull_request
|
||||||
|
- cron
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 200
|
||||||
|
memory: 1024MiB
|
||||||
|
|
||||||
|
- name: build-alpine-3-15
|
||||||
|
image: plugins/kaniko:1.4.1
|
||||||
|
settings:
|
||||||
|
dockerfile: alpine-3.15/Dockerfile
|
||||||
|
password:
|
||||||
|
from_secret: docker_password
|
||||||
|
username:
|
||||||
|
from_secret: docker_username
|
||||||
|
repo: lerentis/ansible
|
||||||
|
tags:
|
||||||
|
- alpine-3.15-dev
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
- pull_request
|
||||||
|
- cron
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 200
|
||||||
|
memory: 1024MiB
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
@ -219,7 +379,7 @@ platform:
|
|||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: build-arch
|
- name: build-arch
|
||||||
image: plugins/kaniko
|
image: plugins/kaniko:1.4.1
|
||||||
settings:
|
settings:
|
||||||
dockerfile: arch/Dockerfile
|
dockerfile: arch/Dockerfile
|
||||||
password:
|
password:
|
||||||
@ -233,6 +393,11 @@ steps:
|
|||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
- pull_request
|
- pull_request
|
||||||
|
- cron
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 200
|
||||||
|
memory: 1024MiB
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
@ -245,8 +410,27 @@ platform:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: build-ubuntu-20-release
|
- name: build-ubuntu-22-release
|
||||||
image: plugins/kaniko
|
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:
|
settings:
|
||||||
dockerfile: ubuntu-20.04/Dockerfile
|
dockerfile: ubuntu-20.04/Dockerfile
|
||||||
password:
|
password:
|
||||||
@ -259,9 +443,13 @@ steps:
|
|||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
- tag
|
- tag
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 200
|
||||||
|
memory: 1024MiB
|
||||||
|
|
||||||
- name: build-ubuntu-18-release
|
- name: build-ubuntu-18-release
|
||||||
image: plugins/kaniko
|
image: plugins/kaniko:1.4.1
|
||||||
settings:
|
settings:
|
||||||
dockerfile: ubuntu-18.04/Dockerfile
|
dockerfile: ubuntu-18.04/Dockerfile
|
||||||
password:
|
password:
|
||||||
@ -274,9 +462,13 @@ steps:
|
|||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
- tag
|
- tag
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 200
|
||||||
|
memory: 1024MiB
|
||||||
|
|
||||||
- name: build-ubuntu-16-release
|
- name: build-ubuntu-16-release
|
||||||
image: plugins/kaniko
|
image: plugins/kaniko:1.4.1
|
||||||
settings:
|
settings:
|
||||||
dockerfile: ubuntu-16.04/Dockerfile
|
dockerfile: ubuntu-16.04/Dockerfile
|
||||||
password:
|
password:
|
||||||
@ -289,9 +481,13 @@ steps:
|
|||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
- tag
|
- tag
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 200
|
||||||
|
memory: 1024MiB
|
||||||
|
|
||||||
- name: build-ubuntu-14-release
|
- name: build-ubuntu-14-release
|
||||||
image: plugins/kaniko
|
image: plugins/kaniko:1.4.1
|
||||||
settings:
|
settings:
|
||||||
dockerfile: ubuntu-14.04/Dockerfile
|
dockerfile: ubuntu-14.04/Dockerfile
|
||||||
password:
|
password:
|
||||||
@ -304,9 +500,13 @@ steps:
|
|||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
- tag
|
- tag
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 200
|
||||||
|
memory: 1024MiB
|
||||||
|
|
||||||
- name: build-debian-8-release
|
- name: build-debian-8-release
|
||||||
image: plugins/kaniko
|
image: plugins/kaniko:1.4.1
|
||||||
settings:
|
settings:
|
||||||
dockerfile: debian-8/Dockerfile
|
dockerfile: debian-8/Dockerfile
|
||||||
password:
|
password:
|
||||||
@ -319,9 +519,13 @@ steps:
|
|||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
- tag
|
- tag
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 200
|
||||||
|
memory: 1024MiB
|
||||||
|
|
||||||
- name: build-debian-9-release
|
- name: build-debian-9-release
|
||||||
image: plugins/kaniko
|
image: plugins/kaniko:1.4.1
|
||||||
settings:
|
settings:
|
||||||
dockerfile: debian-9/Dockerfile
|
dockerfile: debian-9/Dockerfile
|
||||||
password:
|
password:
|
||||||
@ -334,9 +538,13 @@ steps:
|
|||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
- tag
|
- tag
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 200
|
||||||
|
memory: 1024MiB
|
||||||
|
|
||||||
- name: build-debian-10-release
|
- name: build-debian-10-release
|
||||||
image: plugins/kaniko
|
image: plugins/kaniko:1.4.1
|
||||||
settings:
|
settings:
|
||||||
dockerfile: debian-10/Dockerfile
|
dockerfile: debian-10/Dockerfile
|
||||||
password:
|
password:
|
||||||
@ -349,6 +557,10 @@ steps:
|
|||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
- tag
|
- tag
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 200
|
||||||
|
memory: 1024MiB
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
@ -361,38 +573,104 @@ platform:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: build-fedora-24-release
|
- name: build-fedora-34-release
|
||||||
image: plugins/kaniko
|
image: plugins/kaniko:1.4.1
|
||||||
settings:
|
settings:
|
||||||
dockerfile: fedora-24/Dockerfile
|
dockerfile: fedora-34/Dockerfile
|
||||||
password:
|
password:
|
||||||
from_secret: docker_password
|
from_secret: docker_password
|
||||||
username:
|
username:
|
||||||
from_secret: docker_username
|
from_secret: docker_username
|
||||||
repo: lerentis/ansible
|
repo: lerentis/ansible
|
||||||
tags:
|
tags:
|
||||||
- fedora-24
|
- fedora-34
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
- tag
|
- tag
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 200
|
||||||
|
memory: 1024MiB
|
||||||
|
|
||||||
- name: build-centos-8-release
|
- name: build-fedora-35-release
|
||||||
image: plugins/kaniko
|
image: plugins/kaniko:1.4.1
|
||||||
settings:
|
settings:
|
||||||
dockerfile: centos-8/Dockerfile
|
dockerfile: fedora-35/Dockerfile
|
||||||
password:
|
password:
|
||||||
from_secret: docker_password
|
from_secret: docker_password
|
||||||
username:
|
username:
|
||||||
from_secret: docker_username
|
from_secret: docker_username
|
||||||
repo: lerentis/ansible
|
repo: lerentis/ansible
|
||||||
tags:
|
tags:
|
||||||
- centos-8
|
- fedora-35
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
- tag
|
- 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
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 200
|
||||||
|
memory: 1024MiB
|
||||||
|
|
||||||
|
- name: build-almalinux-8-release
|
||||||
|
image: plugins/kaniko:1.4.1
|
||||||
|
settings:
|
||||||
|
dockerfile: almalinux-8/Dockerfile
|
||||||
|
password:
|
||||||
|
from_secret: docker_password
|
||||||
|
username:
|
||||||
|
from_secret: docker_username
|
||||||
|
repo: lerentis/ansible
|
||||||
|
tags:
|
||||||
|
- almalinux-8
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
- tag
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 200
|
||||||
|
memory: 1024MiB
|
||||||
|
|
||||||
- name: build-centos-7-release
|
- name: build-centos-7-release
|
||||||
image: plugins/kaniko
|
image: plugins/kaniko:1.4.1
|
||||||
settings:
|
settings:
|
||||||
dockerfile: centos-7/Dockerfile
|
dockerfile: centos-7/Dockerfile
|
||||||
password:
|
password:
|
||||||
@ -405,6 +683,10 @@ steps:
|
|||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
- tag
|
- tag
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 200
|
||||||
|
memory: 1024MiB
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
@ -417,20 +699,43 @@ platform:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: build-alpine-3-release
|
- name: build-alpine-3.14-release
|
||||||
image: plugins/kaniko
|
image: plugins/kaniko:1.4.1
|
||||||
settings:
|
settings:
|
||||||
dockerfile: alpine-3/Dockerfile
|
dockerfile: alpine-3.14/Dockerfile
|
||||||
password:
|
password:
|
||||||
from_secret: docker_password
|
from_secret: docker_password
|
||||||
username:
|
username:
|
||||||
from_secret: docker_username
|
from_secret: docker_username
|
||||||
repo: lerentis/ansible
|
repo: lerentis/ansible
|
||||||
tags:
|
tags:
|
||||||
- alpine-3
|
- alpine-3.14
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
- tag
|
- tag
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 200
|
||||||
|
memory: 1024MiB
|
||||||
|
|
||||||
|
- name: build-alpine-3.15-release
|
||||||
|
image: plugins/kaniko:1.4.1
|
||||||
|
settings:
|
||||||
|
dockerfile: alpine-3.15/Dockerfile
|
||||||
|
password:
|
||||||
|
from_secret: docker_password
|
||||||
|
username:
|
||||||
|
from_secret: docker_username
|
||||||
|
repo: lerentis/ansible
|
||||||
|
tags:
|
||||||
|
- alpine-3.15
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
- tag
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 200
|
||||||
|
memory: 1024MiB
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
@ -444,7 +749,7 @@ platform:
|
|||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: build-arch-release
|
- name: build-arch-release
|
||||||
image: plugins/kaniko
|
image: plugins/kaniko:1.4.1
|
||||||
settings:
|
settings:
|
||||||
dockerfile: arch/Dockerfile
|
dockerfile: arch/Dockerfile
|
||||||
password:
|
password:
|
||||||
@ -457,7 +762,10 @@ steps:
|
|||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
- tag
|
- tag
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 200
|
||||||
|
memory: 1024MiB
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
@ -473,13 +781,19 @@ steps:
|
|||||||
- name: notify
|
- name: notify
|
||||||
image: appleboy/drone-telegram
|
image: appleboy/drone-telegram
|
||||||
settings:
|
settings:
|
||||||
message: "Commit {{ commit.link }} ran with build {{ build.number }} and finished with status {{ build.status }}."
|
message: "Commit {{ commit.message }} ran with build {{ build.number }} and finished with status {{ build.status }}."
|
||||||
to: 14852963
|
to:
|
||||||
token: 335668211:AAF-YgId7iI6ANBuZVy4uVOYYqA4R4uAaqY
|
from_secret: telegram_userid
|
||||||
|
token:
|
||||||
|
from_secret: telegram_secret
|
||||||
when:
|
when:
|
||||||
status:
|
status:
|
||||||
- failure
|
- failure
|
||||||
- success
|
- success
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
- pull_request
|
||||||
|
- cron
|
||||||
depends_on:
|
depends_on:
|
||||||
- build-arch
|
- build-arch
|
||||||
- build-alpine
|
- build-alpine
|
||||||
@ -500,13 +814,18 @@ steps:
|
|||||||
- name: notify
|
- name: notify
|
||||||
image: appleboy/drone-telegram
|
image: appleboy/drone-telegram
|
||||||
settings:
|
settings:
|
||||||
message: "Commit {{ commit.link }} ran with build {{ build.number }} and finished with status {{ build.status }}."
|
message: "Release {{ build.tag }} ran with build {{ build.number }} and finished with status {{ build.status }}."
|
||||||
to: 14852963
|
to:
|
||||||
token: 335668211:AAF-YgId7iI6ANBuZVy4uVOYYqA4R4uAaqY
|
from_secret: telegram_userid
|
||||||
|
token:
|
||||||
|
from_secret: telegram_secret
|
||||||
when:
|
when:
|
||||||
status:
|
status:
|
||||||
- failure
|
- failure
|
||||||
- success
|
- success
|
||||||
|
event:
|
||||||
|
- tag
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- release-arch
|
- release-arch
|
||||||
- release-alpine
|
- release-alpine
|
||||||
|
10
README.md
10
README.md
@ -1,6 +1,6 @@
|
|||||||
# ansible
|
# ansible
|
||||||
|
|
||||||
[](https://drone.burntbunch.org/lerentis/ansible-container)
|
[](https://drone.uploadfilter24.eu/lerentis/ansible)
|
||||||
|
|
||||||
Docker images for running and testing ansible playbooks with various operating systems.
|
Docker images for running and testing ansible playbooks with various operating systems.
|
||||||
This Project is based on this [project](https://github.com/pauvos/ansible), which seems abandoned
|
This Project is based on this [project](https://github.com/pauvos/ansible), which seems abandoned
|
||||||
@ -10,11 +10,13 @@ Available operating systems:
|
|||||||
|
|
||||||
* alpine-3
|
* alpine-3
|
||||||
* centos-7
|
* centos-7
|
||||||
|
* almalinux-8
|
||||||
* debian-8
|
* debian-8
|
||||||
* fedora-24
|
* fedora-24
|
||||||
* ubuntu-16.04
|
* ubuntu-16.04
|
||||||
* ubuntu-18.04
|
* ubuntu-18.04
|
||||||
* ubuntu-19.04
|
* ubuntu-20.04
|
||||||
|
* ubuntu-22.04
|
||||||
* arch
|
* arch
|
||||||
|
|
||||||
## run playbooks
|
## run playbooks
|
||||||
@ -69,6 +71,6 @@ Note: /root/.ansible must not be an overlayfs, otherwise ssh accelerate won't wo
|
|||||||
|
|
||||||
## references
|
## references
|
||||||
|
|
||||||
* [project](https://git.burntbunch.org/lerentis/ansible-container)
|
* [project](https://git.uploadfilter24.eu/lerentis/ansible)
|
||||||
|
|
||||||
Current Version: 0.7.2
|
Current Version: 2.0
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
FROM centos:8
|
FROM almalinux:8
|
||||||
|
|
||||||
RUN dnf -y install python3-pip &&\
|
RUN dnf -y install python3-pip epel-release \
|
||||||
dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm &&\
|
&& dnf install -y ansible curl \
|
||||||
dnf install -y --enablerepo epel-playground ansible curl \
|
|
||||||
&& curl -L https://github.com/aelsabbahy/goss/releases/latest/download/goss-linux-amd64 -o /usr/local/bin/goss \
|
&& curl -L https://github.com/aelsabbahy/goss/releases/latest/download/goss-linux-amd64 -o /usr/local/bin/goss \
|
||||||
&& chmod +rx /usr/local/bin/goss \
|
&& chmod +rx /usr/local/bin/goss \
|
||||||
&& touch ~/.netrc && chmod og-rw ~/.netrc \
|
&& touch ~/.netrc && chmod og-rw ~/.netrc \
|
@ -1,4 +1,4 @@
|
|||||||
FROM alpine:3
|
FROM alpine:3.14
|
||||||
|
|
||||||
RUN apk add --no-cache ansible curl \
|
RUN apk add --no-cache ansible curl \
|
||||||
&& curl -L https://github.com/aelsabbahy/goss/releases/latest/download/goss-linux-amd64 -o /usr/local/bin/goss \
|
&& curl -L https://github.com/aelsabbahy/goss/releases/latest/download/goss-linux-amd64 -o /usr/local/bin/goss \
|
7
alpine-3.15/Dockerfile
Normal file
7
alpine-3.15/Dockerfile
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
FROM alpine:3.15
|
||||||
|
|
||||||
|
RUN apk add --no-cache ansible 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
|
||||||
|
|
||||||
|
CMD ["ansible-playbook", "--help"]
|
@ -1,4 +1,4 @@
|
|||||||
FROM archlinux
|
FROM archlinux:latest
|
||||||
|
|
||||||
RUN pacman -Syuu --noconfirm && pacman -S python python2 ansible sshpass git python-passlib python-netaddr curl --noconfirm \
|
RUN pacman -Syuu --noconfirm && pacman -S python python2 ansible sshpass git python-passlib python-netaddr curl --noconfirm \
|
||||||
&& curl -L https://github.com/aelsabbahy/goss/releases/latest/download/goss-linux-amd64 -o /usr/local/bin/goss \
|
&& curl -L https://github.com/aelsabbahy/goss/releases/latest/download/goss-linux-amd64 -o /usr/local/bin/goss \
|
||||||
|
11
build-all.sh
11
build-all.sh
@ -1,12 +1,17 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
cd ubuntu-18.04 && docker buildx build -t lerentis/ansible:ubuntu-18.04 --platform=linux/arm,linux/arm64,linux/amd64 . --push
|
cd ubuntu-18.04 && docker buildx build -t lerentis/ansible:ubuntu-18.04 --platform=linux/arm,linux/arm64,linux/amd64 . --push
|
||||||
cd ../ubuntu-16.04 && docker buildx build -t lerentis/ansible:ubuntu-16.04 --platform=linux/arm,linux/arm64,linux/amd64 . --push
|
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 ../alpine-3.14 && docker buildx build -t lerentis/ansible:alpine-3.14 --platform=linux/arm,linux/arm64,linux/amd64 . --push
|
||||||
|
cd ../alpine-3.15 && docker buildx build -t lerentis/ansible:alpine-3.15 --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 ../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-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-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
|
cd ../debian-10 && docker buildx build -t lerentis/ansible:debian-10 --platform=linux/arm64,linux/amd64 . --push
|
||||||
cd ../centos-7 && docker buildx build -t lerentis/ansible:centos-7 --platform=linux/arm64,linux/amd64 . --push
|
cd ../centos-7 && docker buildx build -t lerentis/ansible:centos-7 --platform=linux/arm64,linux/amd64 . --push
|
||||||
cd ../centos-8 && docker buildx build -t lerentis/ansible:centos-8 --platform=linux/arm64,linux/amd64 . --push
|
cd ../almalinux-8 && docker buildx build -t lerentis/ansible:almalinux-8 --platform=linux/arm64,linux/amd64 . --push
|
||||||
cd ../arch && docker buildx build -t lerentis/ansible:arch --platform=linux/arm,linux/amd64 . --push
|
cd ../arch && docker buildx build -t lerentis/ansible:arch --platform=linux/arm,linux/amd64 . --push
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
FROM fedora:24
|
FROM fedora:34
|
||||||
|
|
||||||
RUN dnf -y install \
|
RUN dnf -y install \
|
||||||
ansible \
|
ansible \
|
11
fedora-35/Dockerfile
Normal file
11
fedora-35/Dockerfile
Normal file
@ -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"]
|
11
fedora-36/Dockerfile
Normal file
11
fedora-36/Dockerfile
Normal file
@ -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"]
|
11
fedora-37/Dockerfile
Normal file
11
fedora-37/Dockerfile
Normal file
@ -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"]
|
16
ubuntu-22.04/Dockerfile
Normal file
16
ubuntu-22.04/Dockerfile
Normal 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 \
|
||||||
|
python3-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"]
|
Reference in New Issue
Block a user