language: shell
os: linux
dist: xenial
git:
  depth: false

branches:
  only:
    - master
    - dev

services:
  - docker

env:
  - DOCKER_COMPOSE_FILE=compose/lts/docker-compose-alpine-fpm.yml
  - DOCKER_COMPOSE_FILE=compose/lts/docker-compose-alpine-fpm.yml
  - DOCKER_COMPOSE_FILE=compose/latest/docker-compose-alpine-fpm.yml
  - DOCKER_COMPOSE_FILE=compose/latest/docker-compose-apache.yml

script: docker-compose -f $DOCKER_COMPOSE_FILE build

deploy:
  - provider: script
    # on:
    #   branch: master
    script: |
        echo "$DOCKER_TOKEN" | docker login -u "$DOCKER_USER" --password-stdin &&\
        echo "I will deploy using the command: docker-compose -f .$DOCKER_COMPOSE_FILE push"
language: shell
os: linux
dist: xenial
git:
  depth: false

branches:
  only:
    - master
    - dev

services:
  - docker

env:
  - DOCKER_COMPOSE_FILE=compose/lts/docker-compose-alpine-fpm.yml
  - DOCKER_COMPOSE_FILE=compose/lts/docker-compose-apache.yml
  - DOCKER_COMPOSE_FILE=compose/latest/docker-compose-alpine-fpm.yml
  - DOCKER_COMPOSE_FILE=compose/latest/docker-compose-apache.yml

script: docker-compose -f $DOCKER_COMPOSE_FILE build

deploy:
  - provider: script
    script: |
        echo "$DOCKER_TOKEN" | docker login -u "$DOCKER_USER" --password-stdin &&\
        echo "I will deploy using the command: docker-compose -f .$DOCKER_COMPOSE_FILE push"
Build Apache as well and try to deploy.
Build Apache as well and try to deploy.
