#1 added ubuntu 18.04 support
This commit is contained in:
parent
1999ac0aed
commit
51eb696e96
21
.drone.yml
21
.drone.yml
@ -1,4 +1,15 @@
|
||||
pipeline:
|
||||
|
||||
build-ubuntu-18:
|
||||
group: build
|
||||
image: plugins/docker
|
||||
repo: lerentis/ansible
|
||||
tag: ubuntu-18.04
|
||||
dockerfile: ubuntu-18.04/Dockerfile
|
||||
dry_run: true
|
||||
when:
|
||||
event: [ push, pull_request ]
|
||||
|
||||
build-ubuntu-16:
|
||||
group: build
|
||||
image: plugins/docker
|
||||
@ -79,6 +90,16 @@ pipeline:
|
||||
when:
|
||||
event: [ push, pull_request ]
|
||||
|
||||
build-ubuntu-18-publish:
|
||||
group: build
|
||||
image: plugins/docker
|
||||
repo: lerentis/ansible
|
||||
tag: ubuntu-18.04
|
||||
dockerfile: ubuntu-18.04/Dockerfile
|
||||
secrets: [ docker_username, docker_password ]
|
||||
when:
|
||||
event: [ tag ]
|
||||
|
||||
build-ubuntu-16-publish:
|
||||
group: build
|
||||
image: plugins/docker
|
||||
|
@ -1,4 +1,5 @@
|
||||
#!/bin/bash
|
||||
cd ubuntu-18.04 && docker build -t lerentis/ansible:ubuntu-18.04 .
|
||||
cd ubuntu-16.04 && docker build -t lerentis/ansible:ubuntu-16.04 .
|
||||
cd ../alpine-3 && docker build -t lerentis/ansible:alpine-3 .
|
||||
cd ../ubuntu-14.04 && docker build -t lerentis/ansible:ubuntu-14.04 .
|
||||
|
16
ubuntu-18.04/Dockerfile
Normal file
16
ubuntu-18.04/Dockerfile
Normal file
@ -0,0 +1,16 @@
|
||||
FROM ubuntu:18.04
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
software-properties-common \
|
||||
apt-utils \
|
||||
&& apt-add-repository ppa:ansible/ansible \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
ansible \
|
||||
python-apt \
|
||||
git-core \
|
||||
openssh-client \
|
||||
&& apt-get clean
|
||||
|
||||
CMD ["ansible-playbook", "--help"]
|
Loading…
Reference in New Issue
Block a user