Parameterize the CentOS version

This commit is contained in:
Jean-Paul Calderone 2019-04-04 14:24:39 -04:00
parent a8f6ff6d36
commit 60f47759e2
2 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,5 @@
FROM centos:7
ARG TAG
FROM centos:${TAG}
ENV WHEELHOUSE_PATH /tmp/wheelhouse
ENV VIRTUALENV_PATH /tmp/venv

View File

@ -390,7 +390,7 @@ jobs:
- run:
name: "Build CentOS images"
command: |
docker build -t tahoelafsci/centos:7 -f ~/project/.circleci/Dockerfile.centos-7 ~/project/
docker build --build-arg TAG=7 -t tahoelafsci/centos:7 -f ~/project/.circleci/Dockerfile.centos ~/project/
- run:
name: "Push CentOS images"
command: |