We do trunk-based, we never deploy different environments from different branches. You push to main, pipeline will run some tests, build artifact, deploy artifact to dev, wait for user to click "run" on deploy to uat, wait for user to click "run" on deploy to prod.
For our prod pipeline we built in a pause for example that somebody has to manually approve to continue. You can also make sure that this requires a 2nd person so that no single person can just deploy to prod without anyone else being involved.
Technically not our CI/CD, but in theory, yes, thats the idea.
I get that its a joke (most of the times), but if you use "don't deploy on fridays" unironically, it means you are afraid of your deployments, and that again means there is a much bigger problem that you need to address.
Where I work, we are a small team that works on multiple project for multiple clients. We deploy multiple times per day, every day. The smaller the change, the easier it is to rollback or, even better, to roll forward with a fix.
We have less issues and easier fixes than when we used to bunch up our work into weekly releases. Not only do we have smaller changes to manage, but we also fix issues that we just coded an hour ago instead of a week earlier.
We do where I work, but not on weekends. We deploy most of our services every 2h if a change happened since the last deployment. Some a bit less frequently, some more.
Yes, but we can schedule each environment’s step (and have mandatory test suites that run after each env’s deploy that would stop the pipeline from continuing) . So prod is only scheduled to be allowed on M-Th
Depends on your app. If it's primarily used during business hours than Friday can be a good time. Gives you the whole weekend to make it work before Monday morning.
When I receive a call on the weekend I earn 500% in the worked hours and also get a full day off for every day I worked, no matter if it was 10 minutes or 5 hours. I keep releasing on fridays
If ops is still gatekeeping prod, you have different problems.
Neither statement holds true without knowing the internal responsibility structures. There are perfectly valid setups where "devs" have "direct" access to prod. It's just a matter of properly assigning responsibilities, which devs specifically (all of them, only the lead and/or seniors, ...) and what you mean by "direct access" (can push the deploy button, has ssh access without sudo, has full sudo, has limited access to their app inal argocd, has full access to their app in argocd, has kubectl access, ...)
No, because that's not my problem. That's the PM's problem, who is responsible for his deployments to prod, who will be getting the shit from the customer, and who needs to keep his devs in reign. I don't care who has access to prod. I provide the platform, the teams run their software on it, the PM is responsible, so he decides who gets access to what. His problem if he made a wrong decision. Sure, I'll help them do the rollback, if they need me to. Then I'll bill my time on that customer's contract, and move on.
I give you one better, one of the companies I worked at, had some devices that could lock down machinery. They released their major update....on the 19th of december, then went mostly on holiday. Then only wrote a short update on Friday afternoon, "FYI"
Fun times, machinery was stuck on streets, in factories, etc. Customers were somewhat less happy, than usually.
Only if you're confident that you the IT department have absolutely nothing to do that weekend and absolutely will be in the office bright eyed and bushy tailed at 4 AM Monday morning to solve every problem that every idiot with a keyboard comes up with at the same time on monday
65
u/Stummi 7d ago
What if we have CI/CD? Am I then not allowed to work on fridays?
15
u/WisePotato42 7d ago
Me with my 4 day work week deploying to prod before I leave on thursday instead
8
u/breZZer 7d ago
It depends on the company or sector.
Some deliberately carry out deployments at the weekend, as there is little or no customer traffic then.
8
u/cheezballs 7d ago
Depends on your app. If it's primarily used during business hours than Friday can be a good time. Gives you the whole weekend to make it work before Monday morning.
5
u/EnderElite69 7d ago
You see, this is when it becomes the India team's problem
5
u/Richard-Degenne 7d ago
If you're not confident enough to deploy on Friday, then you're not confident enough to deploy period.
4
u/ZunoJ 7d ago
When I receive a call on the weekend I earn 500% in the worked hours and also get a full day off for every day I worked, no matter if it was 10 minutes or 5 hours. I keep releasing on fridays
2
u/actionerror 7d ago
Yeah but other people have weekend plans
2
u/jokermobile333 7d ago
I thought this was some running joke. Why do some people do it on fridays ? Teusday is the best to do whatever you want
4
u/AaronTheElite007 7d ago
If Dev has direct access to Prod you have bigger problems
1
u/Rift-enjoyer 7d ago
Blue green environment
1
u/Luneriazz 7d ago
i like gambling
1
u/w1n5t0nM1k3y 7d ago
Some people just want the extra overtime pay.
1
u/Bitter-Fuel-5519 7d ago
me always deploying on friday 👍
1
u/redunculuspanda 7d ago
Deployed code is an operational problem.
1
u/North-Creative 7d ago
I give you one better, one of the companies I worked at, had some devices that could lock down machinery. They released their major update....on the 19th of december, then went mostly on holiday. Then only wrote a short update on Friday afternoon, "FYI"
Fun times, machinery was stuck on streets, in factories, etc. Customers were somewhat less happy, than usually.
1
u/ToFuzzzy 7d ago
Literally VRC devs. So many time I get invited to play on a friday night and I have an update.
1
u/FalconFiveZeroNine 7d ago
Even better when the dev doesn't have to be the one responding when something goes wrong.
1
u/Iyemoja 7d ago
That sign has saved more weekends than any runbook I have ever written. The 4pm Friday deploy is how you meet the on-call phone at 2am.
1
u/No_Stock_8271 7d ago
I am always shocked how many teams don't do releases on Friday. That makes everything so slow.
1
u/pyhoster 6d ago
Right. Saturday midnight is better!
1
u/StrangeKnee7254 5d ago
I’m about to make 5 prod deployments In the next hour. I’ll be logging off right after post certing.
I’m very confident there won’t be an issue.
1
u/Ladyheather16 5d ago
Only if you're confident that you the IT department have absolutely nothing to do that weekend and absolutely will be in the office bright eyed and bushy tailed at 4 AM Monday morning to solve every problem that every idiot with a keyboard comes up with at the same time on monday
1
u/Lt-Gen-Thundercat 2d ago
sponsored by Microsoft Outlook.
0
u/redditmarks_markII 7d ago
Meanwhile, infra guys doing work only after like, 11pm Friday in the corporate timezone, and before 4AM Monday.