I have written this config.yml file but under workflow it says no build, can anyone help me with that?
# Use the latest 2.1 version of CircleCI pipeline process engine.
# See: https://circleci.com/docs/2.0/configuration-reference
version: 2.1
# Define a job to be invoked later in a workflow.
# See: https://circleci.com/docs/2.0/configuration-reference/#jobs
jobs:
build:
# Specify the execution environment. You can specify an image from Dockerhub or use one of our Convenience Images from CircleCI's Developer Hub.
# See: https://circleci.com/docs/2.0/configuration-reference/#docker-machine-macos-windows-executor
machine:
image: ubuntu-2004:current
resource_class: small
# Add steps to the job
# See: https://circleci.com/docs/2.0/configuration-reference/#steps
steps:
- checkout
- run:
name: "Docker Build"
command: docker build -t optiq/main-website:${CIRCLE_BUILD_NUM} .
- run: echo ${DOCKER_HUB_USERNAME}
- run:
name: "Docker Login"
command: docker login -u ${DOCKER_HUB_USERNAME} -p ${DOCKER_HUB_PASSWORD}
- run:
name: "Docker Push"
command: docker push optiq/main-website:${CIRCLE_BUILD_NUM}
# Invoke jobs via workflows
# See: https://circleci.com/docs/2.0/configuration-reference/#workflows
workflows:
create-build:
jobs:
- build:
filters:
branches:
only:
-master
-development