Skip to content
Snippets Groups Projects

Add auto_deploy command to display environment status

Merged Robert Speicher requested to merge rs-auto-deploy-status into master
All threads resolved!

image


690959ed - Update gitlab gem to 4.12.0

b588adbc - Add Slack.mrkdwn method

1e3dd112 - Store and expose host in Gitlab::Client

This renames DEFAULT_ENDPOINT to DEFAULT_HOST, since we were providing the /api/v4 endpoint for non-gitlab.com hosts.

Now we expose the resulting host setting through a reader, which will be used in a future command.

d04e31bc - Add version and commit_refs to Gitlab::Client

838c27ac - Add support for Block Kit to Slack::Message

50054a8b - Add auto_deploy command

The first iteration of this command will display the version and auto-deploy branch status for Production, Canary, and Staging.

Edited by Robert Speicher

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Robert Speicher
  • Robert Speicher
  • Author Contributor

    @yorickpeterse Would you mind doing a preliminary review of this to see if I'm headed in the right direction, before I spend some time implementing the tests? :purple_heart:

  • assigned to @yorickpeterse and unassigned @rspeicher

  • This looks really nice, I would also add the package version that is set in chef for each environment. To do this we would need to add a function to the chef helper https://gitlab.com/gitlab-com/chatops/blob/master/lib/chatops/chef/client.rb.

    Example:

    $ knife role show gprd-cny-omnibus-version
    chef_type:           role
    default_attributes:
      omnibus-gitlab:
        package:
          enable:  true
          key:     ***
          name:    gitlab-ee
          repo:    gitlab/pre-release
          use_key: true
          version: 12.2.201908070325-662939f0452.e8d2cfd6b1f

    Where we would display the version ^^

    The role names are by convention but a standard naming based on the environment:

    • gprd-cny-omnibus-version
    • gstg-omnibus-version
    • gprd-omnibus-version
    • pre-omnibus-version
    Edited by John Jarvis
  • John Jarvis
  • John Jarvis
  • assigned to @rspeicher and unassigned @yorickpeterse

  • Robert Speicher added 8 commits

    added 8 commits

    • 0be3623f - 1 commit from branch master
    • bc45162f - Update gitlab gem to 4.12.0
    • 238c4215 - Add Slack.markdown method
    • 16e9053c - Store and expose host in Gitlab::Client
    • 1505c5a1 - Add version and commit_refs to Gitlab::Client
    • 35b027e8 - Add support for Block Kit to Slack::Message
    • 6aefecd5 - Add auto_deploy command
    • c01bc193 - Link to auto-deploy revision and branch

    Compare with previous version

  • Robert Speicher
  • added 1 commit

    • 3d479ab3 - Add specs for AutoDeploy command

    Compare with previous version

  • mentioned in issue #58 (closed)

  • Robert Speicher unmarked as a Work In Progress

    unmarked as a Work In Progress

  • Robert Speicher resolved all threads

    resolved all threads

  • Author Contributor

    @yorickpeterse Ready for review please! :purple_heart:

  • assigned to @yorickpeterse and unassigned @rspeicher

  • Yorick Peterse approved this merge request

    approved this merge request

  • Please register or sign in to reply
    Loading