and better alpine support

This commit is contained in:
Tobias Trabelsi 2022-04-20 19:41:18 +02:00
parent 39c7266b49
commit 12fe4cf41a
Signed by: lerentis
GPG Key ID: FF0C2839718CAF2E
4 changed files with 55 additions and 7 deletions

View File

@ -325,17 +325,38 @@ platform:
steps:
- name: build-alpine-3
- name: build-alpine-3-14
image: plugins/kaniko:1.4.1
settings:
dockerfile: alpine-3/Dockerfile
dockerfile: alpine-3.14/Dockerfile
password:
from_secret: docker_password
username:
from_secret: docker_username
repo: lerentis/ansible
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:
event:
- push
@ -678,17 +699,36 @@ platform:
steps:
- name: build-alpine-3-release
- name: build-alpine-3.14-release
image: plugins/kaniko:1.4.1
settings:
dockerfile: alpine-3/Dockerfile
dockerfile: alpine-3.14/Dockerfile
password:
from_secret: docker_password
username:
from_secret: docker_username
repo: lerentis/ansible
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:
event:
- tag

7
alpine-3.15/Dockerfile Normal file
View 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"]

View File

@ -1,7 +1,8 @@
#!/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-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-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