I’m trying to create a simple build which checks out a project runs docker-compose build && docker-compose push. Here’s my config.
version: 2.1 jobs: build: working_directory: /app docker: - image: docker:20.10.3 steps: - checkout - setup_remote_docker: docker_layer_caching: false - run: name: Setup env command: ln -s env.template .env - run: name: loginto docker command: | echo "$DOCKER_PASS" | docker login --username $DOCKER_USER --password-stdin - run: name: Install Docker Compose command: | set -x curl -L https://github.com/docker/compose/releases/download/1.25.3/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose && chmod +x /usr/local/bin/docker-compose - run: name: Setup docker-compose alias command: ln -s production.yml docker-compose.yml - run: name: build docker command: docker-compose build - run: name: Docker Push command: docker-compose push ghost workflows: publish_image: jobs: - build: context: - DOCKER filters: branches: only: master
All the steps that involve docker-compose are behaving as if they worked but they provide no output.
case in point:
#!/bin/sh -eo pipefail docker-compose build CircleCI received exit code 0
It obviously didn’t do the job, the image isn’t published but not sure how to debug this. What am I doing wrong here?