Workflow not configured

circle.yml

#1

I have set up a new project, but the workflow specified in the config file is not being detected. It is a simple three step sequential workflow. Only the build job is being run and it states that “has no workflows configured” for the project. Perhaps I am doing something wrong?

The configuration used is as follows:

# Three step deploy process
# 1. Build the JS assets using webpack
# 2. Run collectstatic to get all the static assets into /static
# 3. Deploy to an S3 bucket
version: 2
jobs:
  build:
    docker:
      - image: circleci/node:7.10

    working_directory: ~/repo

    steps:
      - checkout

      # Download and cache dependencies
      - restore_cache:
          keys:
          - v1-dependencies-{{ checksum "package.json" }}
          # fallback to using the latest cache if no exact match is found
          - v1-dependencies-

      - run: npm install

      - save_cache:
          paths:
            - node_modules
          key: v1-dependencies-{{ checksum "package.json" }}

      - run: npm run build-prod

  collectstatic:
    docker:
      - image: circleci/python:3.5.3

    working_directory: ~/repo

    steps:
      # Download and cache dependencies
      - restore_cache:
          keys:
          - v1-py-dependencies-{{ checksum "requirements.txt" }}
          # fallback to using the latest cache if no exact match is found
          - v1-py-dependencies-

      - run:
          name: install dependencies
          command: |
            python3 -m venv venv
            . venv/bin/activate
            pip install -r requirements.txt

      - save_cache:
          paths:
            - ./venv
          key: v1-py-dependencies-{{ checksum "requirements.txt" }}

      # run collectstatic
      - run: python setup.py collectstatic --noinput

  deploy:
    docker:
      - image: circleci/python:3.5.3

    working_directory: ~/repo

    steps:
      - run: pip install --upgrade --user awscli
      - deploy:
          name: Deploy to S3 if tests pass and branch is Master
          command: |
            if [ "${CIRCLE_BRANCH}" == "master" ]; then
              aws s3 sync static s3://my_bucket/ --delete
            else
              echo "Not master branch so not deploying"
            fi

workflows:
  version: 2
  btd:
    jobs:
      - build
      - collectstatic:
        requires:
          - build
      - deploy:
        requires:
          - collectstatic

Builds are also not being triggered when pushing to the bitbucket repository. The webhook is being sent from bitbucket and a 200 status code is returned, but no new build is being scheduled.


#2

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.