I’m able to use my orb with this config.yml
:
orbs:
ssh-deployment: arturgontijo/ssh-deployment@dev:0.0.1
workflows:
service-1:
jobs:
- ssh-deployment/deploy:
ssh-host: ${SSH_HOST}
ssh-user: ${SSH_USER}
service-2:
jobs:
- ssh-deployment/deploy:
ssh-host: ${SSH_HOST}
ssh-user: ${SSH_USER}
version: 2.1
But not with this one:
version: 2.1
orbs:
ssh-deployment: arturgontijo/ssh-deployment@dev:0.0.1
jobs:
service-1:
docker:
- image: 'circleci/python:3.7.1'
steps:
- ssh-deployment/deploy:
ssh-host: ${SSH_HOST}
ssh-user: ${SSH_USER}
service-2:
docker:
- image: 'circleci/python:3.7.1'
steps:
- ssh-deployment/deploy:
ssh-host: ${SSH_HOST_2}
ssh-user: ${SSH_USER_2}
workflows:
test-services:
jobs:
- service-1
- service-2
I’m getting the Cannot find a definition for command named ssh-deployment/deploy
error.
Does the second approach only work with “official” orbs?