mirror of
https://github.com/geerlingguy/ansible-role-apache
synced 2024-11-14 01:10:20 +01:00
Issue #61: Attempt to set dockerfile name via varaible.
This commit is contained in:
parent
a3f86ab912
commit
1b64ceefbb
3 changed files with 3 additions and 1 deletions
|
@ -3,6 +3,7 @@ sudo: required
|
||||||
env:
|
env:
|
||||||
# CentOS 7.
|
# CentOS 7.
|
||||||
- container_id: $(mktemp)
|
- container_id: $(mktemp)
|
||||||
|
dockerfile: Dockerfile.centos-7
|
||||||
distribution: centos
|
distribution: centos
|
||||||
version: 7
|
version: 7
|
||||||
init: /usr/lib/systemd/systemd
|
init: /usr/lib/systemd/systemd
|
||||||
|
@ -10,6 +11,7 @@ env:
|
||||||
|
|
||||||
# Ubuntu 14.04.
|
# Ubuntu 14.04.
|
||||||
- container_id: $(mktemp)
|
- container_id: $(mktemp)
|
||||||
|
dockerfile: Dockerfile.ubuntu-14
|
||||||
distribution: ubuntu
|
distribution: ubuntu
|
||||||
version: 14.04
|
version: 14.04
|
||||||
init: /sbin/init
|
init: /sbin/init
|
||||||
|
@ -23,7 +25,7 @@ before_install:
|
||||||
# Pull container.
|
# Pull container.
|
||||||
- "sudo docker pull ${distribution}:${version}"
|
- "sudo docker pull ${distribution}:${version}"
|
||||||
# Customize container.
|
# Customize container.
|
||||||
- "sudo docker build --rm=true --file=tests/Dockerfile.${distribution} --tag=${distribution}:ansible tests"
|
- "sudo docker build --rm=true --file=tests/${dockerfile} --tag=${distribution}:ansible tests"
|
||||||
|
|
||||||
script:
|
script:
|
||||||
# Run container in detached state.
|
# Run container in detached state.
|
||||||
|
|
Loading…
Reference in a new issue