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

Support the deploy freeze windows #269

Closed
Tracked by #29
noahingh opened this issue Dec 18, 2021 · 1 comment · Fixed by #283
Closed
Tracked by #29

Support the deploy freeze windows #269

noahingh opened this issue Dec 18, 2021 · 1 comment · Fixed by #283
Labels
enhancement New feature or request
Milestone

Comments

@noahingh
Copy link
Member

noahingh commented Dec 18, 2021

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"
@noahingh noahingh mentioned this issue Dec 18, 2021
40 tasks
@noahingh noahingh changed the title Deploy freeze windows Support the deploy freeze windows Dec 18, 2021
@noahingh noahingh added this to the v0.5 milestone Dec 18, 2021
@noahingh noahingh added component: server This issue or pull request is related to the feature of the server-side enhancement New feature or request and removed component: server This issue or pull request is related to the feature of the server-side labels Dec 18, 2021
@noahingh
Copy link
Member Author

noahingh commented Dec 25, 2021

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant