zkry / yaml-pro

Edit YAML in Emacs like a pro
GNU General Public License v3.0
137 stars 9 forks source link

[feature request] Anchor and alias #54

Open uqix opened 6 months ago

uqix commented 6 months ago

Given this yaml:

definitions:
  steps:
    # define
    - step: &build-test
        name: Build and test
        script:
          - mvn package
        artifacts:
          - target/**
    - step: &deploy
        name: Deploy
        deployment: test
        script:
          - ./deploy.sh target/my-app.jar

pipelines:
  branches:
    develop:
      # ref
      - step: *build-test
      - step: *deploy
    main:
      - step: *build-test
      - step:
          # ref and patch
          <<: *deploy
          deployment: production
          trigger: manual

Wish list:

zkry commented 5 months ago

These are all great ideas. I'll try to find the time to work on these.

uqix commented 5 months ago

Thanks, just take your time, consider it low priority.