Skip to content

Commit

Permalink
Merge pull request #4 from ROKT/allow-simultaneous-pending-and-comple…
Browse files Browse the repository at this point in the history
…te-flags

Allow both pending and complete.
  • Loading branch information
CloutKhan authored Aug 3, 2021
2 parents 6fbae1a + d142c5c commit 59800ce
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ steps:
- label: "Single Deployment Step"
key: "deployment:${ENVIRONMENT}:${REGION}:single-deployment-step"
plugins:
- ROKT/tag-release#v1.0.3-beta:
- ROKT/tag-release#v1.1.0:
mark_pending: true
mark_completed: true
```
Expand All @@ -40,13 +41,13 @@ steps:
- label: "First Deployment Step"
key: "deployment:${ENVIRONMENT}:${REGION}:first-deployment-step"
plugins:
- ROKT/tag-release#v1.0.3-beta:
- ROKT/tag-release#v1.1.0:
mark_pending: true

- label: "Final Deployment Step"
key: "deployment:${ENVIRONMENT}:${REGION}:last-deployment-step"
plugins:
- ROKT/tag-release#v1.0.3-beta:
- ROKT/tag-release#v1.1.0:
mark_completed: true
```
Expand All @@ -61,21 +62,22 @@ steps:
- label: "Deploy Service One"
key: "deployment:${ENVIRONMENT}:${REGION}:deploy-service-one"
plugins:
- ROKT/tag-release#v1.0.3-beta:
- ROKT/tag-release#v1.1.0:
mark_pending: true
mark_completed: true
tag_identifier: service-one

- label: "Begin Deployment of Service Two"
key: "deployment:${ENVIRONMENT}:${REGION}:begin-deploy-service-two"
plugins:
- ROKT/tag-release#v1.0.3-beta:
- ROKT/tag-release#v1.1.0:
mark_pending: true
tag_identifier: service-two

- label: "Complete Deployment of Service Two"
key: "deployment:${ENVIRONMENT}:${REGION}:complete-deployment-service-two"
plugins:
- ROKT/tag-release#v1.0.3-beta:
- ROKT/tag-release#v1.1.0:
mark_completed: true
tag_identifier: service-two
```
2 changes: 1 addition & 1 deletion plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ configuration:
type: boolean # Should we mark the commit as current / previous
tag_identifier:
type: string # An identifier to include in the tag to distinguish deployment of different services within the same repository
oneOf:
anyOf:
- required:
- mark_pending
- required:
Expand Down

0 comments on commit 59800ce

Please sign in to comment.