.services_and_imports: &services_and_imports services: - docker imports: - ./xxx.yml .common_envs: &common_envs SSH_USERNAME: username SSH_PASSWORD: password SSH_IP: production_ip .develop_envs: &develop_envs DEVELOP: true .production_envs: &production_envs PRODUCTION: true .uname_script: &uname_script name: uname script: uname -a main: push: - name: amd runner: tags: cnb:arch:amd64 <<: *services_and_imports env: <<: [ *common_envs, *production_envs ] stages: - *uname_script - name: echo ssh ip script: echo $SSH_IP develop: push: - name: amd runner: tags: cnb:arch:amd64 env: <<: *common_envs <<: *develop_envs <<: *common_envs stages: - *uname_script - name: echo ssh ip script: echo $SSH_IP