steps:
  - name: ":docker: :package:"
    plugins:
      docker-compose:
        build: frontend
        image-repository: index.docker.io/buildkiteci/frontend
    env:
      RAILS_ENV: test
    agents:
      queue: elastic-builders

  - wait

  - name: ":eslint:"
    command: ".buildkite/steps/eslint.sh"
    plugins:
      docker-compose#ed68516:
        run: frontend

  - name: ":jest:"
    command: ".buildkite/steps/jest.sh"
    artifact_paths: "coverage/*"
    plugins:
      docker-compose#ed68516:
        run: frontend

  - name: ":package::mag:"
    command: ".buildkite/steps/bundle-analyze.sh"
    artifact_paths: "bundle-analysis/*"
    plugins:
      docker-compose#ed68516:
        run: frontend

  - name: ":webpack:"
    command: ".buildkite/steps/webpack.sh"
    artifact_paths: "dist/*"
    plugins:
      docker-compose#ed68516:
        run: frontend

  - wait

  - name: ":rocket:"
    command: ".buildkite/steps/deploy.sh"
    branches: "master"
    artifact_paths: "tmp/verify/*"
    agents:
      queue: "deploy"

steps:
  - name: ":docker: :package:"
    plugins:
      docker-compose:
        build: frontend
        image-repository: index.docker.io/buildkiteci/frontend
    env:
      RAILS_ENV: test
    agents:
      queue: elastic-builders

  - wait

  - name: ":eslint:"
    command: ".buildkite/steps/eslint.sh"
    plugins:
      docker-compose#ed68516:
        run: frontend

  - name: ":jest:"
    command: ".buildkite/steps/jest.sh"
    artifact_paths: "coverage/*"
    plugins:
      docker-compose#ed68516:
        run: frontend

  - name: ":package::mag:"
    command: ".buildkite/steps/bundle-analyze.sh"
    artifact_paths: "bundle-analysis/*"
    plugins:
      docker-compose#ed68516:
        run: frontend

  - name: ":webpack:"
    command: ".buildkite/steps/webpack.sh"
    artifact_paths: "dist/*"
    plugins:
      docker-compose#ed68516:
        run: frontend

  - wait

  - name: ":rocket:"
    command: ".buildkite/steps/deploy.sh"
    branches: "master"
    artifact_paths: "tmp/verify/*"
    concurrency: 1
    concurrency_group: "deployer"
    agents:
      queue: "deploy"

Add the `deploy` step to the `deployer` concurrency group
Add the `deploy` step to the `deployer` concurrency group
