mirror of
https://github.com/geerlingguy/ansible-role-apache
synced 2024-12-22 11:00:18 +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:
|
||||
# CentOS 7.
|
||||
- container_id: $(mktemp)
|
||||
dockerfile: Dockerfile.centos-7
|
||||
distribution: centos
|
||||
version: 7
|
||||
init: /usr/lib/systemd/systemd
|
||||
|
@ -10,6 +11,7 @@ env:
|
|||
|
||||
# Ubuntu 14.04.
|
||||
- container_id: $(mktemp)
|
||||
dockerfile: Dockerfile.ubuntu-14
|
||||
distribution: ubuntu
|
||||
version: 14.04
|
||||
init: /sbin/init
|
||||
|
@ -23,7 +25,7 @@ before_install:
|
|||
# Pull container.
|
||||
- "sudo docker pull ${distribution}:${version}"
|
||||
# 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:
|
||||
# Run container in detached state.
|
||||
|
|
Loading…
Reference in a new issue