Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(rulesets): add instance key to ruleset #1157

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

wsan3
Copy link
Contributor

@wsan3 wsan3 commented Jul 9, 2024

Description

  • Add instance key to ruleset tag
  • Enable steps to match and run on certain instances (e.g. dev vs prod)

Example

version: "1"

steps:
  - name: run step on production instance
    ruleset:
      event: push
      branch: main
      instance: https://octocat.prod.github.com
    image: alpine
    commands:
      - echo "this step ran on a production instance"

Related

go-vela/community#803

@wsan3 wsan3 added the feature Indicates a new feature label Jul 9, 2024
@wsan3 wsan3 self-assigned this Jul 9, 2024
@wsan3 wsan3 requested a review from a team as a code owner July 9, 2024 18:30
Copy link

codecov bot commented Aug 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (main@563ff52). Learn more about missing BASE report.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1157   +/-   ##
=======================================
  Coverage        ?   52.18%           
=======================================
  Files           ?      550           
  Lines           ?    18834           
  Branches        ?        0           
=======================================
  Hits            ?     9829           
  Misses          ?     8443           
  Partials        ?      562           
Files Coverage Δ
compiler/native/compile.go 71.73% <100.00%> (ø)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Indicates a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants