and better alpine support
This commit is contained in:
parent
39c7266b49
commit
12fe4cf41a
52
.drone.yml
52
.drone.yml
@ -325,17 +325,38 @@ platform:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: build-alpine-3
|
- name: build-alpine-3-14
|
||||||
image: plugins/kaniko:1.4.1
|
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:
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
- 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:
|
when:
|
||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
@ -678,17 +699,36 @@ platform:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: build-alpine-3-release
|
- name: build-alpine-3.14-release
|
||||||
image: plugins/kaniko:1.4.1
|
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:
|
||||||
|
event:
|
||||||
|
- 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:
|
when:
|
||||||
event:
|
event:
|
||||||
- tag
|
- tag
|
||||||
|
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,7 +1,8 @@
|
|||||||
#!/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 ../ubuntu-22.04 && docker buildx build -t lerentis/ansible:ubuntu-22.04 --platform=linux/arm,linux/arm64,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-34 && docker buildx build -t lerentis/ansible:fedora-34 --platform=linux/amd64 . --push
|
||||||
|
Loading…
Reference in New Issue
Block a user