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: deploy tenant release v6 #281

Merged
merged 20 commits into from
Jan 16, 2023
Merged

Conversation

benPearce1
Copy link
Contributor

@benPearce1 benPearce1 commented Jan 16, 2023

Deploy for specific tenants

- task: OctopusDeployReleaseTenanted@6
  name: 'releaseTenants'
  inputs:
    OctoConnectedServiceName: 'octo'
    Space: 'Default'
    Project: 'New Awesome Project'
    ReleaseNumber: '0.0.1'
    Environment: 'test'
    DeployForTenants: |
      tenant 1
      tenant 2
      tenant 4

Deploy for tenant tags:

- task: OctopusDeployReleaseTenanted@6
  name: 'releaseTenantTags'
  inputs:
    OctoConnectedServiceName: 'octo'
    Space: 'Default'
    Project: 'New Awesome Project'
    ReleaseNumber: '0.0.2'
    Environment: 'test'
    DeployForTenantTags: |
      customer type/early adopter
      maintenance/friday

image

@benPearce1 benPearce1 changed the base branch from main to enh-steps-v6 January 16, 2023 07:20
@benPearce1 benPearce1 changed the title Enh deploy tenant release v6 feat: deploy tenant release v6 Jan 16, 2023
@benPearce1 benPearce1 marked this pull request as ready for review January 16, 2023 07:21
Copy link
Contributor

@slewis74 slewis74 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good. A couple of doc/UI thoughts inline for consideration

"defaultValue": "",
"required": true,
"properties": {
"EditableOptions": "True"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this isn't needed now we aren't using the selectors

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

if (parameters.space === "") {
errors.push("The Octopus space name is required.");
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we could add some validation here for tenants/tags to help the users. There should be at least 1 tenant or 1 tag.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

"minimumAgentVersion": "2.144.0",
"groups": [
{
"name": "tenant",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

feels like this probably isn't needed for this step. The groups are good for collapsing optional/advanced things out of the way, but Tenants are required for this step so should always be visible.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

group removed, ui screenshot updated

@benPearce1 benPearce1 merged commit a2c2130 into enh-steps-v6 Jan 16, 2023
@benPearce1 benPearce1 deleted the enh-deploy-tenant-release-v6 branch January 16, 2023 23:50
benPearce1 added a commit that referenced this pull request Feb 8, 2023
feat: New steps for Zip/NuGet pack (#276)
feat:push step v6 (#277)
feat: deploy release v6 (#278)
feat: deploy tenant release v6 (#281)
feat: await task (#282)
feat: Run runbook step (#285)
feat: Create release v6 (#283)
chore: updated the way user agent strings are built for the v6 steps (#287)
feat: push build information v6 (#284)
chore: Added output variable definitions for the Pack steps
feat: CLI installer step - v6 (#279)
chore: added warning logs for use of additional arguments fields (#286)
chore: fixed some pluralisation inconsistencies

Co-authored-by: Ben Pearce <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants