Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.
This repository was archived by the owner on May 30, 2024. It is now read-only.

Support the deploy freeze windows #269

Closed

Description

@noahingh

Sometimes users want to prevent deployments for a particular period, for example, during a planned vacation period when most employees are out. This feature makes the deployment much safety.

Implement

Gitploy gets the last time matched with the crontab expression and verifies the current time is in duration from the start time. I need to get the last time matched with the start pattern to implement. But there is no package support getting the last time (e.g. robfig/cron), so we decide to make a new package.

Example

envs:
  - name: production
    frozen_windows:
      # Freeze every midnight
      - start: "55 23 * * *"
        duration: "10m"
        location: "Asia/Seoul"
      # Freeze weekend 
      - start: "* * * * 5,6"
        duration: "1m"
        location: "Asia/Seoul"

Activity

  1. changed the title [-]Deploy freeze windows[/-] [+]Support the deploy freeze windows[/+] on Dec 18, 2021
  2. added this to the v0.5 milestone on Dec 18, 2021
  3. added
    component: serverThis issue or pull request is related to the feature of the server-side
    enhancementNew feature or request
    and removed
    component: serverThis issue or pull request is related to the feature of the server-side
    on Dec 18, 2021
  4. noahingh commented on Dec 25, 2021

    @noahingh
    MemberAuthor

    I've made a new package gitploy-io/cronexpr, now I can provide a new feature called deploy freeze window.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions